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 #ifndef CONTENT_APP_ANDROID_USER_AGENT_H_ | 5 #ifndef CONTENT_APP_ANDROID_USER_AGENT_H_ |
6 #define CONTENT_APP_ANDROID_USER_AGENT_H_ | 6 #define CONTENT_APP_ANDROID_USER_AGENT_H_ |
7 #pragma once | |
8 | 7 |
9 #include <jni.h> | 8 #include <jni.h> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 // Returns the OS information component required by user agent composition. | 13 // Returns the OS information component required by user agent composition. |
15 std::string GetUserAgentOSInfo(); | 14 std::string GetUserAgentOSInfo(); |
16 | 15 |
17 // Register JNI method. | 16 // Register JNI method. |
18 bool RegisterUserAgent(JNIEnv* env); | 17 bool RegisterUserAgent(JNIEnv* env); |
19 | 18 |
20 } // namespace content | 19 } // namespace content |
21 | 20 |
22 #endif // CONTENT_APP_ANDROID_USER_AGENT_H_ | 21 #endif // CONTENT_APP_ANDROID_USER_AGENT_H_ |
OLD | NEW |