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

Side by Side Diff: extensions/browser/api/web_request/web_request_api.h

Issue 2317923002: [Merge to 2840] Revert of Fix WebRequest's EventListener::operator< (patchset #3 id:40001 of https:… (Closed)
Patch Set: Created 4 years, 3 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) 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 const std::string& extension_name, 267 const std::string& extension_name,
268 events::HistogramValue histogram_value, 268 events::HistogramValue histogram_value,
269 const std::string& event_name, 269 const std::string& event_name,
270 const std::string& sub_event_name, 270 const std::string& sub_event_name,
271 const RequestFilter& filter, 271 const RequestFilter& filter,
272 int extra_info_spec, 272 int extra_info_spec,
273 int embedder_process_id, 273 int embedder_process_id,
274 int web_view_instance_id, 274 int web_view_instance_id,
275 base::WeakPtr<IPC::Sender> ipc_sender); 275 base::WeakPtr<IPC::Sender> ipc_sender);
276 276
277 // Get the number of listeners - for testing only.
278 int GetListenerCountForTesting(void* browser_context,
279 const std::string& event_name);
280
281 // Removes the listener for the given sub-event. 277 // Removes the listener for the given sub-event.
282 void RemoveEventListener( 278 void RemoveEventListener(
283 void* browser_context, 279 void* browser_context,
284 const std::string& extension_id, 280 const std::string& extension_id,
285 const std::string& sub_event_name, 281 const std::string& sub_event_name,
286 int embedder_process_id, 282 int embedder_process_id,
287 int web_view_instance_id); 283 int web_view_instance_id);
288 284
289 // Removes the listeners for a given <webview>. 285 // Removes the listeners for a given <webview>.
290 void RemoveWebViewEventListeners( 286 void RemoveWebViewEventListeners(
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 extensions::QuotaLimitHeuristics* heuristics) const override; 534 extensions::QuotaLimitHeuristics* heuristics) const override;
539 // Handle quota exceeded gracefully: Only warn the user but still execute the 535 // Handle quota exceeded gracefully: Only warn the user but still execute the
540 // function. 536 // function.
541 void OnQuotaExceeded(const std::string& error) override; 537 void OnQuotaExceeded(const std::string& error) override;
542 ResponseAction Run() override; 538 ResponseAction Run() override;
543 }; 539 };
544 540
545 } // namespace extensions 541 } // namespace extensions
546 542
547 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ 543 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698