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 "chrome/renderer/web_apps.h" | 5 #include "chrome/renderer/web_apps.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
12 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
15 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
17 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "build/build_config.h" |
18 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/web_application_info.h" | 22 #include "chrome/common/web_application_info.h" |
20 #include "third_party/WebKit/public/platform/WebString.h" | 23 #include "third_party/WebKit/public/platform/WebString.h" |
21 #include "third_party/WebKit/public/platform/WebURL.h" | 24 #include "third_party/WebKit/public/platform/WebURL.h" |
22 #include "third_party/WebKit/public/web/WebDocument.h" | 25 #include "third_party/WebKit/public/web/WebDocument.h" |
23 #include "third_party/WebKit/public/web/WebElement.h" | 26 #include "third_party/WebKit/public/web/WebElement.h" |
24 #include "third_party/WebKit/public/web/WebFrame.h" | 27 #include "third_party/WebKit/public/web/WebFrame.h" |
25 #include "third_party/WebKit/public/web/WebNode.h" | 28 #include "third_party/WebKit/public/web/WebNode.h" |
26 #include "ui/gfx/geometry/size.h" | 29 #include "ui/gfx/geometry/size.h" |
27 #include "url/gurl.h" | 30 #include "url/gurl.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 base::StringPiece16(content), "yes") && | 183 base::StringPiece16(content), "yes") && |
181 app_info->mobile_capable == | 184 app_info->mobile_capable == |
182 WebApplicationInfo::MOBILE_CAPABLE_UNSPECIFIED) { | 185 WebApplicationInfo::MOBILE_CAPABLE_UNSPECIFIED) { |
183 app_info->mobile_capable = WebApplicationInfo::MOBILE_CAPABLE_APPLE; | 186 app_info->mobile_capable = WebApplicationInfo::MOBILE_CAPABLE_APPLE; |
184 } | 187 } |
185 } | 188 } |
186 } | 189 } |
187 } | 190 } |
188 | 191 |
189 } // namespace web_apps | 192 } // namespace web_apps |
OLD | NEW |