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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return InternalTestInitializer::SetUtility(u); | 61 return InternalTestInitializer::SetUtility(u); |
62 } | 62 } |
63 | 63 |
64 ContentClient::ContentClient() | 64 ContentClient::ContentClient() |
65 : browser_(NULL), plugin_(NULL), renderer_(NULL), utility_(NULL) { | 65 : browser_(NULL), plugin_(NULL), renderer_(NULL), utility_(NULL) { |
66 } | 66 } |
67 | 67 |
68 ContentClient::~ContentClient() { | 68 ContentClient::~ContentClient() { |
69 } | 69 } |
70 | 70 |
| 71 void ContentClient::SetActiveURL(const std::string& url) { |
| 72 SetActiveURL(GURL(url)); |
| 73 } |
| 74 |
71 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { | 75 bool ContentClient::CanSendWhileSwappedOut(const IPC::Message* message) { |
72 return false; | 76 return false; |
73 } | 77 } |
74 | 78 |
75 std::string ContentClient::GetProduct() const { | 79 std::string ContentClient::GetProduct() const { |
76 return std::string(); | 80 return std::string(); |
77 } | 81 } |
78 | 82 |
79 std::string ContentClient::GetUserAgent() const { | 83 std::string ContentClient::GetUserAgent() const { |
80 return std::string(); | 84 return std::string(); |
(...skipping 30 matching lines...) Expand all Loading... |
111 int* sandbox_profile_resource_id) const { | 115 int* sandbox_profile_resource_id) const { |
112 return false; | 116 return false; |
113 } | 117 } |
114 #endif | 118 #endif |
115 | 119 |
116 bool ContentClient::IsSupplementarySiteIsolationModeEnabled() { | 120 bool ContentClient::IsSupplementarySiteIsolationModeEnabled() { |
117 return false; | 121 return false; |
118 } | 122 } |
119 | 123 |
120 } // namespace content | 124 } // namespace content |
OLD | NEW |