| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/shell_browser_context.h" | 5 #include "content/shell/browser/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/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); | 88 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &path_)); |
| 89 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); | 89 path_ = path_.Append(FILE_PATH_LITERAL("content_shell")); |
| 90 #else | 90 #else |
| 91 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
| 92 #endif | 92 #endif |
| 93 | 93 |
| 94 if (!base::PathExists(path_)) | 94 if (!base::PathExists(path_)) |
| 95 base::CreateDirectory(path_); | 95 base::CreateDirectory(path_); |
| 96 } | 96 } |
| 97 | 97 |
| 98 scoped_ptr<ZoomLevelDelegate> ShellBrowserContext::CreateZoomLevelDelegate( |
| 99 const base::FilePath&) { |
| 100 return scoped_ptr<ZoomLevelDelegate>(); |
| 101 } |
| 102 |
| 98 base::FilePath ShellBrowserContext::GetPath() const { | 103 base::FilePath ShellBrowserContext::GetPath() const { |
| 99 return path_; | 104 return path_; |
| 100 } | 105 } |
| 101 | 106 |
| 102 bool ShellBrowserContext::IsOffTheRecord() const { | 107 bool ShellBrowserContext::IsOffTheRecord() const { |
| 103 return off_the_record_; | 108 return off_the_record_; |
| 104 } | 109 } |
| 105 | 110 |
| 106 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { | 111 DownloadManagerDelegate* ShellBrowserContext::GetDownloadManagerDelegate() { |
| 107 if (!download_manager_delegate_.get()) { | 112 if (!download_manager_delegate_.get()) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 193 |
| 189 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { | 194 PushMessagingService* ShellBrowserContext::GetPushMessagingService() { |
| 190 return NULL; | 195 return NULL; |
| 191 } | 196 } |
| 192 | 197 |
| 193 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { | 198 SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() { |
| 194 return NULL; | 199 return NULL; |
| 195 } | 200 } |
| 196 | 201 |
| 197 } // namespace content | 202 } // namespace content |
| OLD | NEW |