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 #include "content/shell/shell_browser_context.h" | 5 #include "content/shell/shell_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #elif defined(OS_MACOSX) | 93 #elif defined(OS_MACOSX) |
94 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); | 94 CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); |
95 path_ = path_.Append("Chromium Content Shell"); | 95 path_ = path_.Append("Chromium Content Shell"); |
96 #elif defined(OS_ANDROID) | 96 #elif defined(OS_ANDROID) |
97 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); | 97 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); |
98 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); | 98 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); |
99 #else | 99 #else |
100 NOTIMPLEMENTED(); | 100 NOTIMPLEMENTED(); |
101 #endif | 101 #endif |
102 | 102 |
103 if (!file_util::PathExists(path_)) | 103 if (!base::PathExists(path_)) |
104 file_util::CreateDirectory(path_); | 104 file_util::CreateDirectory(path_); |
105 } | 105 } |
106 | 106 |
107 base::FilePath ShellBrowserContext::GetPath() { | 107 base::FilePath ShellBrowserContext::GetPath() { |
108 return path_; | 108 return path_; |
109 } | 109 } |
110 | 110 |
111 bool ShellBrowserContext::IsOffTheRecord() const { | 111 bool ShellBrowserContext::IsOffTheRecord() const { |
112 return off_the_record_; | 112 return off_the_record_; |
113 } | 113 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 GeolocationPermissionContext* | 185 GeolocationPermissionContext* |
186 ShellBrowserContext::GetGeolocationPermissionContext() { | 186 ShellBrowserContext::GetGeolocationPermissionContext() { |
187 return NULL; | 187 return NULL; |
188 } | 188 } |
189 | 189 |
190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 190 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
191 return NULL; | 191 return NULL; |
192 } | 192 } |
193 | 193 |
194 } // namespace content | 194 } // namespace content |
OLD | NEW |