OLD | NEW |
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 EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 void RemoveEventListener( | 289 void RemoveEventListener( |
290 void* browser_context, | 290 void* browser_context, |
291 const std::string& extension_id, | 291 const std::string& extension_id, |
292 const std::string& sub_event_name, | 292 const std::string& sub_event_name, |
293 int embedder_process_id, | 293 int embedder_process_id, |
294 int web_view_instance_id); | 294 int web_view_instance_id); |
295 | 295 |
296 // Removes the listeners for a given <webview>. | 296 // Removes the listeners for a given <webview>. |
297 void RemoveWebViewEventListeners( | 297 void RemoveWebViewEventListeners( |
298 void* browser_context, | 298 void* browser_context, |
299 const std::string& extension_id, | |
300 int embedder_process_id, | 299 int embedder_process_id, |
301 int web_view_instance_id); | 300 int web_view_instance_id); |
302 | 301 |
303 // Called when an incognito browser_context is created or destroyed. | 302 // Called when an incognito browser_context is created or destroyed. |
304 void OnOTRBrowserContextCreated(void* original_browser_context, | 303 void OnOTRBrowserContextCreated(void* original_browser_context, |
305 void* otr_browser_context); | 304 void* otr_browser_context); |
306 void OnOTRBrowserContextDestroyed(void* original_browser_context, | 305 void OnOTRBrowserContextDestroyed(void* original_browser_context, |
307 void* otr_browser_context); | 306 void* otr_browser_context); |
308 | 307 |
309 // Registers a |callback| that is executed when the next page load happens. | 308 // Registers a |callback| that is executed when the next page load happens. |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 // ExtensionFunction: | 550 // ExtensionFunction: |
552 void GetQuotaLimitHeuristics( | 551 void GetQuotaLimitHeuristics( |
553 extensions::QuotaLimitHeuristics* heuristics) const override; | 552 extensions::QuotaLimitHeuristics* heuristics) const override; |
554 // Handle quota exceeded gracefully: Only warn the user but still execute the | 553 // Handle quota exceeded gracefully: Only warn the user but still execute the |
555 // function. | 554 // function. |
556 void OnQuotaExceeded(const std::string& error) override; | 555 void OnQuotaExceeded(const std::string& error) override; |
557 bool RunSync() override; | 556 bool RunSync() override; |
558 }; | 557 }; |
559 | 558 |
560 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 559 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |