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

Side by Side Diff: ios/web/browser_url_rewriter_impl.h

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
« no previous file with comments | « ios/public/test/test_keyed_service_provider.cc ('k') | ios/web/browser_url_rewriter_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ 5 #ifndef IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_
6 #define IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ 6 #define IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 11 matching lines...) Expand all
22 static BrowserURLRewriterImpl* GetInstance(); 22 static BrowserURLRewriterImpl* GetInstance();
23 23
24 // BrowserURLRewriter implementation: 24 // BrowserURLRewriter implementation:
25 bool RewriteURLIfNecessary(GURL* url, BrowserState* browser_state) override; 25 bool RewriteURLIfNecessary(GURL* url, BrowserState* browser_state) override;
26 void AddURLRewriter(URLRewriter rewriter) override; 26 void AddURLRewriter(URLRewriter rewriter) override;
27 27
28 private: 28 private:
29 // This object is a singleton: 29 // This object is a singleton:
30 BrowserURLRewriterImpl(); 30 BrowserURLRewriterImpl();
31 ~BrowserURLRewriterImpl() override; 31 ~BrowserURLRewriterImpl() override;
32 friend struct DefaultSingletonTraits<BrowserURLRewriterImpl>; 32 friend struct base::DefaultSingletonTraits<BrowserURLRewriterImpl>;
33 33
34 // The list of known URLRewriters. 34 // The list of known URLRewriters.
35 std::vector<URLRewriter> url_rewriters_; 35 std::vector<URLRewriter> url_rewriters_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(BrowserURLRewriterImpl); 37 DISALLOW_COPY_AND_ASSIGN(BrowserURLRewriterImpl);
38 }; 38 };
39 39
40 } // namespace web 40 } // namespace web
41 41
42 #endif // IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_ 42 #endif // IOS_WEB_BROWSER_URL_REWRITER_IMPL_H_
OLDNEW
« no previous file with comments | « ios/public/test/test_keyed_service_provider.cc ('k') | ios/web/browser_url_rewriter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698