OLD | NEW |
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/execute_code_function.h" | 8 #include "chrome/browser/extensions/api/execute_code_function.h" |
9 | 9 |
| 10 namespace extensions { |
| 11 |
10 class WebviewClearDataFunction : public AsyncExtensionFunction { | 12 class WebviewClearDataFunction : public AsyncExtensionFunction { |
11 public: | 13 public: |
12 DECLARE_EXTENSION_FUNCTION("webview.clearData", WEBVIEW_CLEARDATA); | 14 DECLARE_EXTENSION_FUNCTION("webview.clearData", WEBVIEW_CLEARDATA); |
13 | 15 |
14 WebviewClearDataFunction(); | 16 WebviewClearDataFunction(); |
15 | 17 |
16 protected: | 18 protected: |
17 virtual ~WebviewClearDataFunction(); | 19 virtual ~WebviewClearDataFunction(); |
18 | 20 |
19 // ExtensionFunction implementation. | 21 // ExtensionFunction implementation. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 protected: | 165 protected: |
164 virtual ~WebviewTerminateFunction(); | 166 virtual ~WebviewTerminateFunction(); |
165 | 167 |
166 // ExtensionFunction implementation. | 168 // ExtensionFunction implementation. |
167 virtual bool RunImpl() OVERRIDE; | 169 virtual bool RunImpl() OVERRIDE; |
168 | 170 |
169 private: | 171 private: |
170 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction); | 172 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction); |
171 }; | 173 }; |
172 | 174 |
| 175 } // namespace extensions |
| 176 |
173 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ | 177 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
OLD | NEW |