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

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: ToT 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 ExtensionWebRequestEventRouter::RequestFilter::~RequestFilter() { 706 ExtensionWebRequestEventRouter::RequestFilter::~RequestFilter() {
707 } 707 }
708 708
709 // 709 //
710 // ExtensionWebRequestEventRouter 710 // ExtensionWebRequestEventRouter
711 // 711 //
712 712
713 // static 713 // static
714 ExtensionWebRequestEventRouter* ExtensionWebRequestEventRouter::GetInstance() { 714 ExtensionWebRequestEventRouter* ExtensionWebRequestEventRouter::GetInstance() {
715 return Singleton<ExtensionWebRequestEventRouter>::get(); 715 return base::Singleton<ExtensionWebRequestEventRouter>::get();
716 } 716 }
717 717
718 ExtensionWebRequestEventRouter::ExtensionWebRequestEventRouter() 718 ExtensionWebRequestEventRouter::ExtensionWebRequestEventRouter()
719 : request_time_tracker_(new ExtensionWebRequestTimeTracker) { 719 : request_time_tracker_(new ExtensionWebRequestTimeTracker) {
720 web_request_event_router_delegate_.reset( 720 web_request_event_router_delegate_.reset(
721 ExtensionsAPIClient::Get()->CreateWebRequestEventRouterDelegate()); 721 ExtensionsAPIClient::Get()->CreateWebRequestEventRouterDelegate());
722 } 722 }
723 723
724 ExtensionWebRequestEventRouter::~ExtensionWebRequestEventRouter() { 724 ExtensionWebRequestEventRouter::~ExtensionWebRequestEventRouter() {
725 } 725 }
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 // Continue gracefully. 2482 // Continue gracefully.
2483 RunSync(); 2483 RunSync();
2484 } 2484 }
2485 2485
2486 bool WebRequestHandlerBehaviorChangedFunction::RunSync() { 2486 bool WebRequestHandlerBehaviorChangedFunction::RunSync() {
2487 helpers::ClearCacheOnNavigation(); 2487 helpers::ClearCacheOnNavigation();
2488 return true; 2488 return true;
2489 } 2489 }
2490 2490
2491 } // namespace extensions 2491 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.h ('k') | extensions/browser/app_window/app_window_geometry_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698