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

Side by Side Diff: chrome/browser/extensions/extension_action_runner.h

Issue 2668083003: Convert ExtensionActionRunner to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_action_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void ShowBlockedActionBubble(const Extension* extension); 157 void ShowBlockedActionBubble(const Extension* extension);
158 158
159 // Called when the blocked actions bubble is closed. 159 // Called when the blocked actions bubble is closed.
160 void OnBlockedActionBubbleClosed( 160 void OnBlockedActionBubbleClosed(
161 const std::string& extension_id, 161 const std::string& extension_id,
162 ToolbarActionsBarBubbleDelegate::CloseAction action); 162 ToolbarActionsBarBubbleDelegate::CloseAction action);
163 163
164 // content::WebContentsObserver implementation. 164 // content::WebContentsObserver implementation.
165 bool OnMessageReceived(const IPC::Message& message, 165 bool OnMessageReceived(const IPC::Message& message,
166 content::RenderFrameHost* render_frame_host) override; 166 content::RenderFrameHost* render_frame_host) override;
167 void DidNavigateMainFrame( 167 void DidFinishNavigation(
168 const content::LoadCommittedDetails& details, 168 content::NavigationHandle* navigation_handle) override;
169 const content::FrameNavigateParams& params) override;
170 169
171 // ExtensionRegistryObserver: 170 // ExtensionRegistryObserver:
172 void OnExtensionUnloaded(content::BrowserContext* browser_context, 171 void OnExtensionUnloaded(content::BrowserContext* browser_context,
173 const Extension* extension, 172 const Extension* extension,
174 UnloadedExtensionInfo::Reason reason) override; 173 UnloadedExtensionInfo::Reason reason) override;
175 174
176 // The total number of requests from the renderer on the current page, 175 // The total number of requests from the renderer on the current page,
177 // including any that are pending or were immediately granted. 176 // including any that are pending or were immediately granted.
178 // Right now, used only in tests. 177 // Right now, used only in tests.
179 int num_page_requests_; 178 int num_page_requests_;
(...skipping 29 matching lines...) Expand all
209 extension_registry_observer_; 208 extension_registry_observer_;
210 209
211 base::WeakPtrFactory<ExtensionActionRunner> weak_factory_; 210 base::WeakPtrFactory<ExtensionActionRunner> weak_factory_;
212 211
213 DISALLOW_COPY_AND_ASSIGN(ExtensionActionRunner); 212 DISALLOW_COPY_AND_ASSIGN(ExtensionActionRunner);
214 }; 213 };
215 214
216 } // namespace extensions 215 } // namespace extensions
217 216
218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ 217 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_action_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698