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

Side by Side Diff: content/test/test_browser_context.cc

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 years, 6 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 #include "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "content/public/test/mock_resource_context.h" 8 #include "content/public/test/mock_resource_context.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 FilePath TestBrowserContext::GetPath() { 31 FilePath TestBrowserContext::GetPath() {
32 return browser_context_dir_.path(); 32 return browser_context_dir_.path();
33 } 33 }
34 34
35 bool TestBrowserContext::IsOffTheRecord() const { 35 bool TestBrowserContext::IsOffTheRecord() const {
36 return false; 36 return false;
37 } 37 }
38 38
39 DownloadManager* TestBrowserContext::GetDownloadManager() { 39 DownloadManagerDelegate* TestBrowserContext::GetDownloadManagerDelegate() {
40 return NULL; 40 return NULL;
41 } 41 }
42 42
43 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { 43 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() {
44 return NULL; 44 return NULL;
45 } 45 }
46 46
47 net::URLRequestContextGetter* 47 net::URLRequestContextGetter*
48 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { 48 TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) {
49 return NULL; 49 return NULL;
(...skipping 21 matching lines...) Expand all
71 71
72 bool TestBrowserContext::DidLastSessionExitCleanly() { 72 bool TestBrowserContext::DidLastSessionExitCleanly() {
73 return true; 73 return true;
74 } 74 }
75 75
76 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 76 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
77 return special_storage_policy_.get(); 77 return special_storage_policy_.get();
78 } 78 }
79 79
80 } // namespace content 80 } // namespace content
OLDNEW
« content/public/browser/download_manager.h ('K') | « content/shell/shell_browser_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698