OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 | 11 |
13 // Clients that want to use default DevTools front-end implementation should | 12 // Clients that want to use default DevTools front-end implementation should |
14 // implement this interface to provide access to the embedding browser from | 13 // implement this interface to provide access to the embedding browser from |
15 // the front-end. | 14 // the front-end. |
16 class DevToolsFrontendHostDelegate { | 15 class DevToolsFrontendHostDelegate { |
17 public: | 16 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 59 |
61 // Invoked when the contents inspected by this devtools frontend is replaced | 60 // Invoked when the contents inspected by this devtools frontend is replaced |
62 // by another contents. This is triggered by | 61 // by another contents. This is triggered by |
63 // TabStripModel::ReplaceTabContentsAt. | 62 // TabStripModel::ReplaceTabContentsAt. |
64 virtual void ContentsReplaced(WebContents* new_contents) = 0; | 63 virtual void ContentsReplaced(WebContents* new_contents) = 0; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace content | 66 } // namespace content |
68 | 67 |
69 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 68 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
OLD | NEW |