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

Side by Side Diff: content/browser/browser_url_handler_impl.h

Issue 659153003: Add a unit test for viewsource reverse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewsource
Patch Set: add some comments Created 6 years, 2 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 | « no previous file | content/browser/browser_url_handler_impl_unittest.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 (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 CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 28 matching lines...) Expand all
39 BrowserURLHandlerImpl(); 39 BrowserURLHandlerImpl();
40 virtual ~BrowserURLHandlerImpl(); 40 virtual ~BrowserURLHandlerImpl();
41 friend struct DefaultSingletonTraits<BrowserURLHandlerImpl>; 41 friend struct DefaultSingletonTraits<BrowserURLHandlerImpl>;
42 42
43 // The list of known URLHandlers, optionally with reverse-rewriters. 43 // The list of known URLHandlers, optionally with reverse-rewriters.
44 typedef std::pair<URLHandler, URLHandler> HandlerPair; 44 typedef std::pair<URLHandler, URLHandler> HandlerPair;
45 std::vector<HandlerPair> url_handlers_; 45 std::vector<HandlerPair> url_handlers_;
46 46
47 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, BasicRewriteAndReverse); 47 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, BasicRewriteAndReverse);
48 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, NullHandlerReverse); 48 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, NullHandlerReverse);
49 FRIEND_TEST_ALL_PREFIXES(BrowserURLHandlerImplTest, ViewSourceReverse);
49 50
50 DISALLOW_COPY_AND_ASSIGN(BrowserURLHandlerImpl); 51 DISALLOW_COPY_AND_ASSIGN(BrowserURLHandlerImpl);
51 }; 52 };
52 53
53 } // namespace content 54 } // namespace content
54 55
55 #endif // CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_ 56 #endif // CONTENT_BROWSER_BROWSER_URL_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_url_handler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698