OLD | NEW |
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_SHELL_SHELL_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
6 #define CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 6 #define CONTENT_SHELL_SHELL_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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/scoped_temp_dir.h" |
13 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 class DownloadManagerDelegate; | 18 class DownloadManagerDelegate; |
18 class ResourceContext; | 19 class ResourceContext; |
19 class ShellBrowserMainParts; | 20 class ShellBrowserMainParts; |
20 class ShellDownloadManagerDelegate; | 21 class ShellDownloadManagerDelegate; |
21 | 22 |
22 class ShellBrowserContext : public BrowserContext { | 23 class ShellBrowserContext : public BrowserContext { |
(...skipping 15 matching lines...) Expand all Loading... |
38 virtual SpeechRecognitionPreferences* | 39 virtual SpeechRecognitionPreferences* |
39 GetSpeechRecognitionPreferences() OVERRIDE; | 40 GetSpeechRecognitionPreferences() OVERRIDE; |
40 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 41 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
41 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 42 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
42 | 43 |
43 private: | 44 private: |
44 // Performs initialization of the ShellBrowserContext while IO is still | 45 // Performs initialization of the ShellBrowserContext while IO is still |
45 // allowed on the current thread. | 46 // allowed on the current thread. |
46 void InitWhileIOAllowed(); | 47 void InitWhileIOAllowed(); |
47 | 48 |
| 49 ScopedTempDir testing_path_; |
48 FilePath path_; | 50 FilePath path_; |
49 scoped_ptr<ResourceContext> resource_context_; | 51 scoped_ptr<ResourceContext> resource_context_; |
50 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 52 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
51 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 53 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 55 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace content | 58 } // namespace content |
57 | 59 |
58 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 60 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |