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

Side by Side Diff: content/test/test_content_browser_client.h

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 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 | Annotate | Revision Log
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_TEST_TEST_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "content/public/browser/content_browser_client.h" 13 #include "content/public/browser/content_browser_client.h"
14 14
15 namespace net {
16 class URLRequestContextGetter;
17 } // namespace net
18
15 namespace content { 19 namespace content {
16 20
17 // Base for unit tests that need a ContentBrowserClient. 21 // Base for unit tests that need a ContentBrowserClient.
18 class TestContentBrowserClient : public ContentBrowserClient { 22 class TestContentBrowserClient : public ContentBrowserClient {
19 public: 23 public:
20 TestContentBrowserClient(); 24 TestContentBrowserClient();
21 virtual ~TestContentBrowserClient(); 25 virtual ~TestContentBrowserClient();
22 26
23 virtual WebContentsViewPort* OverrideCreateWebContentsView( 27 virtual WebContentsViewPort* OverrideCreateWebContentsView(
24 WebContents* web_contents, 28 WebContents* web_contents,
25 RenderViewHostDelegateView** render_view_host_delegate_view) OVERRIDE; 29 RenderViewHostDelegateView** render_view_host_delegate_view) OVERRIDE;
30 virtual net::URLRequestContextGetter* CreateRequestContext(
31 BrowserContext* browser_context,
32 ProtocolHandlerMap* protocol_handlers) OVERRIDE;
26 virtual base::FilePath GetDefaultDownloadDirectory() OVERRIDE; 33 virtual base::FilePath GetDefaultDownloadDirectory() OVERRIDE;
27 34
28 private: 35 private:
29 // Temporary directory for GetDefaultDownloadDirectory. 36 // Temporary directory for GetDefaultDownloadDirectory.
30 base::ScopedTempDir download_dir_; 37 base::ScopedTempDir download_dir_;
31 38
32 DISALLOW_COPY_AND_ASSIGN(TestContentBrowserClient); 39 DISALLOW_COPY_AND_ASSIGN(TestContentBrowserClient);
33 }; 40 };
34 41
35 } // namespace content 42 } // namespace content
36 43
37 #endif // CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_ 44 #endif // CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.cc ('k') | content/test/test_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698