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

Side by Side Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 9316102: Update extension events, routing, and delivery to use user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lint fix Created 8 years, 9 months 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 | Annotate | Revision Log
OLDNEW
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 CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 friend class RenderViewTest; 92 friend class RenderViewTest;
93 93
94 // RenderProcessObserver implementation: 94 // RenderProcessObserver implementation:
95 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 95 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
96 virtual void WebKitInitialized() OVERRIDE; 96 virtual void WebKitInitialized() OVERRIDE;
97 virtual void IdleNotification() OVERRIDE; 97 virtual void IdleNotification() OVERRIDE;
98 98
99 void OnMessageInvoke(const std::string& extension_id, 99 void OnMessageInvoke(const std::string& extension_id,
100 const std::string& function_name, 100 const std::string& function_name,
101 const base::ListValue& args, 101 const base::ListValue& args,
102 const GURL& event_url); 102 const GURL& event_url,
103 bool user_gesture);
103 void OnDeliverMessage(int target_port_id, const std::string& message); 104 void OnDeliverMessage(int target_port_id, const std::string& message);
104 void OnSetFunctionNames(const std::vector<std::string>& names); 105 void OnSetFunctionNames(const std::vector<std::string>& names);
105 void OnLoaded( 106 void OnLoaded(
106 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); 107 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
107 void OnUnloaded(const std::string& id); 108 void OnUnloaded(const std::string& id);
108 void OnSetScriptingWhitelist( 109 void OnSetScriptingWhitelist(
109 const Extension::ScriptingWhitelist& extension_ids); 110 const Extension::ScriptingWhitelist& extension_ids);
110 void OnPageActionsUpdated(const std::string& extension_id, 111 void OnPageActionsUpdated(const std::string& extension_id,
111 const std::vector<std::string>& page_actions); 112 const std::vector<std::string>& page_actions);
112 void OnActivateApplication(const std::string& extension_id); 113 void OnActivateApplication(const std::string& extension_id);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Status of webrequest usage for known extensions. 179 // Status of webrequest usage for known extensions.
179 // TODO(mpcomplete): remove. http://crbug.com/100411 180 // TODO(mpcomplete): remove. http://crbug.com/100411
180 bool webrequest_adblock_; 181 bool webrequest_adblock_;
181 bool webrequest_adblock_plus_; 182 bool webrequest_adblock_plus_;
182 bool webrequest_other_; 183 bool webrequest_other_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); 185 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
185 }; 186 };
186 187
187 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 188 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698