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

Side by Side Diff: content/public/test/test_browser_context.h

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 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~TestBrowserContext(); 23 virtual ~TestBrowserContext();
24 24
25 // Takes ownership of the temporary directory so that it's not deleted when 25 // Takes ownership of the temporary directory so that it's not deleted when
26 // this object is destructed. 26 // this object is destructed.
27 FilePath TakePath(); 27 FilePath TakePath();
28 28
29 void SetSpecialStoragePolicy(quota::SpecialStoragePolicy* policy); 29 void SetSpecialStoragePolicy(quota::SpecialStoragePolicy* policy);
30 30
31 virtual FilePath GetPath() OVERRIDE; 31 virtual FilePath GetPath() OVERRIDE;
32 virtual bool IsOffTheRecord() const OVERRIDE; 32 virtual bool IsOffTheRecord() const OVERRIDE;
33 virtual DownloadManager* GetDownloadManager() OVERRIDE; 33 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() OVERRIDE;
34 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 34 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
35 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 35 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
36 int renderer_child_id) OVERRIDE; 36 int renderer_child_id) OVERRIDE;
37 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; 37 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
38 virtual ResourceContext* GetResourceContext() OVERRIDE; 38 virtual ResourceContext* GetResourceContext() OVERRIDE;
39 virtual GeolocationPermissionContext* 39 virtual GeolocationPermissionContext*
40 GetGeolocationPermissionContext() OVERRIDE; 40 GetGeolocationPermissionContext() OVERRIDE;
41 virtual SpeechRecognitionPreferences* 41 virtual SpeechRecognitionPreferences*
42 GetSpeechRecognitionPreferences() OVERRIDE; 42 GetSpeechRecognitionPreferences() OVERRIDE;
43 virtual bool DidLastSessionExitCleanly() OVERRIDE; 43 virtual bool DidLastSessionExitCleanly() OVERRIDE;
44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
45 45
46 private: 46 private:
47 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly); 47 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly);
48 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState); 48 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState);
49 49
50 scoped_ptr<MockResourceContext> resource_context_; 50 scoped_ptr<MockResourceContext> resource_context_;
51 ScopedTempDir browser_context_dir_; 51 ScopedTempDir browser_context_dir_;
52 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 52 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); 54 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
55 }; 55 };
56 56
57 } // namespace content 57 } // namespace content
58 58
59 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 59 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698