OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "webkit/common/user_agent/user_agent.h" | 5 #include "webkit/common/user_agent/user_agent.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 void SetUserAgent(const std::string& user_agent) { | 67 void SetUserAgent(const std::string& user_agent) { |
68 g_user_agent.Get().Set(user_agent); | 68 g_user_agent.Get().Set(user_agent); |
69 } | 69 } |
70 | 70 |
71 const std::string& GetUserAgent(const GURL& url) { | 71 const std::string& GetUserAgent(const GURL& url) { |
72 return g_user_agent.Get().Get(); | 72 return g_user_agent.Get().Get(); |
73 } | 73 } |
74 | 74 |
75 } // namespace webkit_glue | 75 } // namespace webkit_glue |
OLD | NEW |