OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "ui/gfx/insets.h" | 12 #include "ui/gfx/geometry/insets.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class ListValue; | 17 class ListValue; |
18 } | 18 } |
19 | 19 |
20 /** | 20 /** |
21 * Dispatcher for messages sent from the DevTools frontend running in an | 21 * Dispatcher for messages sent from the DevTools frontend running in an |
22 * isolated renderer (on chrome-devtools://) to the embedder in the browser. | 22 * isolated renderer (on chrome-devtools://) to the embedder in the browser. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual ~DevToolsEmbedderMessageDispatcher() {} | 69 virtual ~DevToolsEmbedderMessageDispatcher() {} |
70 virtual bool Dispatch(const std::string& method, | 70 virtual bool Dispatch(const std::string& method, |
71 const base::ListValue* params, | 71 const base::ListValue* params, |
72 std::string* error) = 0; | 72 std::string* error) = 0; |
73 | 73 |
74 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend( | 74 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend( |
75 Delegate* delegate); | 75 Delegate* delegate); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 78 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
OLD | NEW |