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

Side by Side Diff: chrome/browser/extensions/api/webview/webview_api.h

Issue 299753011: Move allocate instance id to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HasPermission function moved Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
7 7
8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" 8 #include "chrome/browser/extensions/api/capture_web_contents_function.h"
9 #include "chrome/browser/extensions/api/execute_code_function.h" 9 #include "chrome/browser/extensions/api/execute_code_function.h"
10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" 10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 protected: 91 protected:
92 virtual ~WebviewContextMenusRemoveAllFunction() {} 92 virtual ~WebviewContextMenusRemoveAllFunction() {}
93 93
94 // ExtensionFunction implementation. 94 // ExtensionFunction implementation.
95 virtual bool RunAsync() OVERRIDE; 95 virtual bool RunAsync() OVERRIDE;
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusRemoveAllFunction); 98 DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusRemoveAllFunction);
99 }; 99 };
100 100
101 class WebviewNavigateFunction : public WebviewExtensionFunction {
102 public:
103 DECLARE_EXTENSION_FUNCTION("webview.navigate", WEBVIEW_NAVIGATE);
104 WebviewNavigateFunction() {}
105
106 protected:
107 virtual ~WebviewNavigateFunction() {}
108
109 private:
110 // WebviewExtensionFunction implementation.
111 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
112
113 DISALLOW_COPY_AND_ASSIGN(WebviewNavigateFunction);
114 };
115
101 class WebviewClearDataFunction : public WebviewExtensionFunction { 116 class WebviewClearDataFunction : public WebviewExtensionFunction {
102 public: 117 public:
103 DECLARE_EXTENSION_FUNCTION("webview.clearData", WEBVIEW_CLEARDATA); 118 DECLARE_EXTENSION_FUNCTION("webview.clearData", WEBVIEW_CLEARDATA);
104 119
105 WebviewClearDataFunction(); 120 WebviewClearDataFunction();
106 121
107 protected: 122 protected:
108 virtual ~WebviewClearDataFunction(); 123 virtual ~WebviewClearDataFunction();
109 124
110 private: 125 private:
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 private: 409 private:
395 // WebviewExtensionFunction implementation. 410 // WebviewExtensionFunction implementation.
396 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; 411 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
397 412
398 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction); 413 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction);
399 }; 414 };
400 415
401 } // namespace extensions 416 } // namespace extensions
402 417
403 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 418 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698