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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // BrowserContext implementation. | 29 // BrowserContext implementation. |
30 virtual FilePath GetPath() OVERRIDE; | 30 virtual FilePath GetPath() OVERRIDE; |
31 virtual bool IsOffTheRecord() OVERRIDE; | 31 virtual bool IsOffTheRecord() OVERRIDE; |
32 virtual DownloadManager* GetDownloadManager() OVERRIDE; | 32 virtual DownloadManager* GetDownloadManager() OVERRIDE; |
33 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 33 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
34 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 34 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
35 int renderer_child_id) OVERRIDE; | 35 int renderer_child_id) OVERRIDE; |
36 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; | 36 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; |
37 virtual ResourceContext* GetResourceContext() OVERRIDE; | 37 virtual ResourceContext* GetResourceContext() OVERRIDE; |
38 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; | |
39 virtual GeolocationPermissionContext* | 38 virtual GeolocationPermissionContext* |
40 GetGeolocationPermissionContext() OVERRIDE; | 39 GetGeolocationPermissionContext() OVERRIDE; |
41 virtual SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; | 40 virtual SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; |
42 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 41 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
43 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; | 42 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; |
44 | 43 |
45 private: | 44 private: |
46 | 45 |
47 FilePath path_; | 46 FilePath path_; |
48 scoped_ptr<ResourceContext> resource_context_; | 47 scoped_ptr<ResourceContext> resource_context_; |
49 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; | 48 scoped_refptr<ShellDownloadManagerDelegate> download_manager_delegate_; |
50 scoped_refptr<DownloadManager> download_manager_; | 49 scoped_refptr<DownloadManager> download_manager_; |
51 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 50 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
52 scoped_refptr<HostZoomMap> host_zoom_map_; | |
53 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; | 51 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; |
54 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; | 52 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; |
55 | 53 |
56 ShellBrowserMainParts* shell_main_parts_; | 54 ShellBrowserMainParts* shell_main_parts_; |
57 | 55 |
58 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); | 56 DISALLOW_COPY_AND_ASSIGN(ShellBrowserContext); |
59 }; | 57 }; |
60 | 58 |
61 } // namespace content | 59 } // namespace content |
62 | 60 |
63 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ | 61 #endif // CONTENT_SHELL_SHELL_BROWSER_CONTEXT_H_ |
OLD | NEW |