| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/content_browser_client.h" | 5 #include "content/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "content/browser/webui/empty_web_ui_factory.h" | 8 #include "content/browser/webui/empty_web_ui_factory.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 void ContentBrowserClient::AppendExtraCommandLineSwitches( | 47 void ContentBrowserClient::AppendExtraCommandLineSwitches( |
| 48 CommandLine* command_line, int child_process_id) { | 48 CommandLine* command_line, int child_process_id) { |
| 49 } | 49 } |
| 50 | 50 |
| 51 std::string ContentBrowserClient::GetApplicationLocale() { | 51 std::string ContentBrowserClient::GetApplicationLocale() { |
| 52 return std::string(); | 52 return std::string(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool ContentBrowserClient::AllowAppCache( | 55 bool ContentBrowserClient::AllowAppCache( |
| 56 const GURL& manifest_url, const content::ResourceContext* context) { | 56 const GURL& manifest_url, const content::ResourceContext& context) { |
| 57 return true; |
| 58 } |
| 59 |
| 60 bool ContentBrowserClient::AllowGetCookie( |
| 61 const GURL& url, |
| 62 const GURL& first_party, |
| 63 const net::CookieList& cookie_list, |
| 64 const content::ResourceContext& context, |
| 65 int render_process_id, |
| 66 int render_view_id) { |
| 67 return true; |
| 68 } |
| 69 |
| 70 bool ContentBrowserClient::AllowSetCookie( |
| 71 const GURL& url, |
| 72 const GURL& first_party, |
| 73 const std::string& cookie_line, |
| 74 const content::ResourceContext& context, |
| 75 int render_process_id, |
| 76 int render_view_id, |
| 77 net::CookieOptions* options) { |
| 57 return true; | 78 return true; |
| 58 } | 79 } |
| 59 | 80 |
| 60 #if defined(OS_LINUX) | 81 #if defined(OS_LINUX) |
| 61 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { | 82 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { |
| 62 return -1; | 83 return -1; |
| 63 } | 84 } |
| 64 #endif | 85 #endif |
| 65 | 86 |
| 66 } // namespace content | 87 } // namespace content |
| OLD | NEW |