Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: extensions/renderer/extension_helper.h

Issue 709933002: Add frameId to MessageSender (extension messaging API) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Generate frameId in browser Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/common/console_message_level.h" 11 #include "content/public/common/console_message_level.h"
12 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
13 #include "content/public/renderer/render_view_observer_tracker.h" 13 #include "content/public/renderer/render_view_observer_tracker.h"
14 #include "extensions/common/view_type.h" 14 #include "extensions/common/view_type.h"
15 15
16 class GURL; 16 class GURL;
17 class SkBitmap; 17 class SkBitmap;
18 struct ExtensionMsg_ExternalConnectionInfo; 18 struct ExtensionMsg_ExternalConnectionInfo;
19 struct ExtensionMsg_TabConnectionInfo;
19 20
20 namespace base { 21 namespace base {
21 class DictionaryValue;
22 class ListValue; 22 class ListValue;
23 } 23 }
24 24
25 namespace extensions { 25 namespace extensions {
26 class AutomationApiHelper; 26 class AutomationApiHelper;
27 class Dispatcher; 27 class Dispatcher;
28 28
29 struct Message; 29 struct Message;
30 30
31 // RenderView-level plumbing for extension features. 31 // RenderView-level plumbing for extension features.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const base::ListValue& response, 68 const base::ListValue& response,
69 const std::string& error); 69 const std::string& error);
70 void OnExtensionMessageInvoke(const std::string& extension_id, 70 void OnExtensionMessageInvoke(const std::string& extension_id,
71 const std::string& module_name, 71 const std::string& module_name,
72 const std::string& function_name, 72 const std::string& function_name,
73 const base::ListValue& args, 73 const base::ListValue& args,
74 bool user_gesture); 74 bool user_gesture);
75 void OnExtensionDispatchOnConnect( 75 void OnExtensionDispatchOnConnect(
76 int target_port_id, 76 int target_port_id,
77 const std::string& channel_name, 77 const std::string& channel_name,
78 const base::DictionaryValue& source_tab, 78 const ExtensionMsg_TabConnectionInfo& source,
79 const ExtensionMsg_ExternalConnectionInfo& info, 79 const ExtensionMsg_ExternalConnectionInfo& info,
80 const std::string& tls_channel_id); 80 const std::string& tls_channel_id);
81 void OnExtensionDeliverMessage(int target_port_id, 81 void OnExtensionDeliverMessage(int target_port_id,
82 const Message& message); 82 const Message& message);
83 void OnExtensionDispatchOnDisconnect(int port_id, 83 void OnExtensionDispatchOnDisconnect(int port_id,
84 const std::string& error_message); 84 const std::string& error_message);
85 void OnNotifyRendererViewType(ViewType view_type); 85 void OnNotifyRendererViewType(ViewType view_type);
86 void OnSetTabId(int tab_id); 86 void OnSetTabId(int tab_id);
87 void OnUpdateBrowserWindowId(int window_id); 87 void OnUpdateBrowserWindowId(int window_id);
88 void OnAddMessageToConsole(content::ConsoleMessageLevel level, 88 void OnAddMessageToConsole(content::ConsoleMessageLevel level,
(...skipping 11 matching lines...) Expand all
100 100
101 // Id number of browser window which RenderView is attached to. 101 // Id number of browser window which RenderView is attached to.
102 int browser_window_id_; 102 int browser_window_id_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 104 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
105 }; 105 };
106 106
107 } // namespace extensions 107 } // namespace extensions
108 108
109 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 109 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698