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

Side by Side Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api.h

Issue 252653002: Rename (Chrome)SyncExtensionFunction::RunImpl to RunSync so that the RunImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bookmarks Created 6 years, 7 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 // Defines the Chrome Extensions WebNavigation API functions for observing and 5 // Defines the Chrome Extensions WebNavigation API functions for observing and
6 // intercepting navigation events, as specified in the extension JSON API. 6 // intercepting navigation events, as specified in the extension JSON API.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 // The profile that owns us via ExtensionService. 205 // The profile that owns us via ExtensionService.
206 Profile* profile_; 206 Profile* profile_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(WebNavigationEventRouter); 208 DISALLOW_COPY_AND_ASSIGN(WebNavigationEventRouter);
209 }; 209 };
210 210
211 // API function that returns the state of a given frame. 211 // API function that returns the state of a given frame.
212 class WebNavigationGetFrameFunction : public ChromeSyncExtensionFunction { 212 class WebNavigationGetFrameFunction : public ChromeSyncExtensionFunction {
213 virtual ~WebNavigationGetFrameFunction() {} 213 virtual ~WebNavigationGetFrameFunction() {}
214 virtual bool RunImpl() OVERRIDE; 214 virtual bool RunSync() OVERRIDE;
215 DECLARE_EXTENSION_FUNCTION("webNavigation.getFrame", WEBNAVIGATION_GETFRAME) 215 DECLARE_EXTENSION_FUNCTION("webNavigation.getFrame", WEBNAVIGATION_GETFRAME)
216 }; 216 };
217 217
218 // API function that returns the states of all frames in a given tab. 218 // API function that returns the states of all frames in a given tab.
219 class WebNavigationGetAllFramesFunction : public ChromeSyncExtensionFunction { 219 class WebNavigationGetAllFramesFunction : public ChromeSyncExtensionFunction {
220 virtual ~WebNavigationGetAllFramesFunction() {} 220 virtual ~WebNavigationGetAllFramesFunction() {}
221 virtual bool RunImpl() OVERRIDE; 221 virtual bool RunSync() OVERRIDE;
222 DECLARE_EXTENSION_FUNCTION("webNavigation.getAllFrames", 222 DECLARE_EXTENSION_FUNCTION("webNavigation.getAllFrames",
223 WEBNAVIGATION_GETALLFRAMES) 223 WEBNAVIGATION_GETALLFRAMES)
224 }; 224 };
225 225
226 class WebNavigationAPI : public BrowserContextKeyedAPI, 226 class WebNavigationAPI : public BrowserContextKeyedAPI,
227 public extensions::EventRouter::Observer { 227 public extensions::EventRouter::Observer {
228 public: 228 public:
229 explicit WebNavigationAPI(content::BrowserContext* context); 229 explicit WebNavigationAPI(content::BrowserContext* context);
230 virtual ~WebNavigationAPI(); 230 virtual ~WebNavigationAPI();
231 231
(...skipping 20 matching lines...) Expand all
252 252
253 // Created lazily upon OnListenerAdded. 253 // Created lazily upon OnListenerAdded.
254 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; 254 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_;
255 255
256 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); 256 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI);
257 }; 257 };
258 258
259 } // namespace extensions 259 } // namespace extensions
260 260
261 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ 261 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/extensions/api/web_navigation/web_navigation_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698