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/public/common/content_client.h" | 5 #include "content/public/common/content_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/common/origin_util.h" | 10 #include "content/public/common/origin_util.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ContentClient::ContentClient() | 64 ContentClient::ContentClient() |
65 : browser_(NULL), | 65 : browser_(NULL), |
66 gpu_(NULL), | 66 gpu_(NULL), |
67 plugin_(NULL), | 67 plugin_(NULL), |
68 renderer_(NULL), | 68 renderer_(NULL), |
69 utility_(NULL) {} | 69 utility_(NULL) {} |
70 | 70 |
71 ContentClient::~ContentClient() { | 71 ContentClient::~ContentClient() { |
72 } | 72 } |
73 | 73 |
| 74 void ContentClient::SetActiveURL(const std::string& url) { |
| 75 SetActiveURL(GURL(url)); |
| 76 } |
| 77 |
74 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { | 78 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { |
75 return false; | 79 return false; |
76 } | 80 } |
77 | 81 |
78 std::string ContentClient::GetProduct() const { | 82 std::string ContentClient::GetProduct() const { |
79 return std::string(); | 83 return std::string(); |
80 } | 84 } |
81 | 85 |
82 std::string ContentClient::GetUserAgent() const { | 86 std::string ContentClient::GetUserAgent() const { |
83 return std::string(); | 87 return std::string(); |
(...skipping 30 matching lines...) Expand all Loading... |
114 int* sandbox_profile_resource_id) const { | 118 int* sandbox_profile_resource_id) const { |
115 return false; | 119 return false; |
116 } | 120 } |
117 #endif | 121 #endif |
118 | 122 |
119 bool ContentClient::IsSupplementarySiteIsolationModeEnabled() { | 123 bool ContentClient::IsSupplementarySiteIsolationModeEnabled() { |
120 return false; | 124 return false; |
121 } | 125 } |
122 | 126 |
123 } // namespace content | 127 } // namespace content |
OLD | NEW |