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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 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 #include "extensions/browser/api/web_request/web_request_api.h" 5 #include "extensions/browser/api/web_request/web_request_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 692
693 ExtensionWebRequestEventRouter::RequestFilter::~RequestFilter() { 693 ExtensionWebRequestEventRouter::RequestFilter::~RequestFilter() {
694 } 694 }
695 695
696 // 696 //
697 // ExtensionWebRequestEventRouter 697 // ExtensionWebRequestEventRouter
698 // 698 //
699 699
700 // static 700 // static
701 ExtensionWebRequestEventRouter* ExtensionWebRequestEventRouter::GetInstance() { 701 ExtensionWebRequestEventRouter* ExtensionWebRequestEventRouter::GetInstance() {
702 return Singleton<ExtensionWebRequestEventRouter>::get(); 702 return base::Singleton<ExtensionWebRequestEventRouter>::get();
703 } 703 }
704 704
705 ExtensionWebRequestEventRouter::ExtensionWebRequestEventRouter() 705 ExtensionWebRequestEventRouter::ExtensionWebRequestEventRouter()
706 : request_time_tracker_(new ExtensionWebRequestTimeTracker) { 706 : request_time_tracker_(new ExtensionWebRequestTimeTracker) {
707 web_request_event_router_delegate_.reset( 707 web_request_event_router_delegate_.reset(
708 ExtensionsAPIClient::Get()->CreateWebRequestEventRouterDelegate()); 708 ExtensionsAPIClient::Get()->CreateWebRequestEventRouterDelegate());
709 } 709 }
710 710
711 ExtensionWebRequestEventRouter::~ExtensionWebRequestEventRouter() { 711 ExtensionWebRequestEventRouter::~ExtensionWebRequestEventRouter() {
712 } 712 }
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 // Continue gracefully. 2469 // Continue gracefully.
2470 RunSync(); 2470 RunSync();
2471 } 2471 }
2472 2472
2473 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { 2473 bool WebRequestHandlerBehaviorChangedFunction::RunSync() {
2474 helpers::ClearCacheOnNavigation(); 2474 helpers::ClearCacheOnNavigation();
2475 return true; 2475 return true;
2476 } 2476 }
2477 2477
2478 } // namespace extensions 2478 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698