Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: chrome/renderer/web_apps.h

Issue 568823003: Merge Android RetrieveWebappInformation and Extensions GetApplicationInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_manager_content
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/renderer/extensions/chrome_extension_helper.cc ('k') | chrome/renderer/web_apps.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_RENDERER_WEB_APPS_H_ 5 #ifndef CHROME_RENDERER_WEB_APPS_H_
6 #define CHROME_RENDERER_WEB_APPS_H_ 6 #define CHROME_RENDERER_WEB_APPS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 13
14 namespace blink { 14 namespace blink {
15 class WebFrame; 15 class WebFrame;
16 } 16 }
17 17
18 struct WebApplicationInfo; 18 struct WebApplicationInfo;
19 19
20 namespace web_apps { 20 namespace web_apps {
21 21
22 // Parses the icon's size attribute as defined in the HTML 5 spec. Returns true 22 // Parses the icon's size attribute as defined in the HTML 5 spec. Returns true
23 // on success, false on errors. On success either all the sizes specified in 23 // on success, false on errors. On success either all the sizes specified in
24 // the attribute are added to sizes, or is_any is set to true. 24 // the attribute are added to sizes, or is_any is set to true.
25 // 25 //
26 // You shouldn't have a need to invoke this directly, it's public for testing. 26 // You shouldn't have a need to invoke this directly, it's public for testing.
27 bool ParseIconSizes(const base::string16& text, std::vector<gfx::Size>* sizes, 27 bool ParseIconSizes(const base::string16& text, std::vector<gfx::Size>* sizes,
28 bool* is_any); 28 bool* is_any);
29 29
30 // Parses |web_app| information out of the document in frame. Returns true on 30 // Parses |app_info| information out of the document in WebFrame. Note that the
31 // success, or false and |error| on failure. Note that the document may contain 31 // document may contain no web application information, in which case |app_info|
32 // no web application information, in which case |web_app| is unchanged and the 32 // is unchanged.
33 // function returns true. 33 void ParseWebAppFromWebDocument(blink::WebFrame* frame,
34 // 34 WebApplicationInfo* app_info);
35 // Documents can also contain a link to a application 'definition'. In this case
36 // web_app will have manifest_url set and nothing else. The caller must fetch
37 // this URL and pass the result to ParseWebAppFromDefinitionFile() for further
38 // processing.
39 bool ParseWebAppFromWebDocument(blink::WebFrame* frame,
40 WebApplicationInfo* web_app,
41 base::string16* error);
42 35
43 } // namespace web_apps 36 } // namespace web_apps
44 37
45 #endif // CHROME_RENDERER_WEB_APPS_H_ 38 #endif // CHROME_RENDERER_WEB_APPS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/chrome_extension_helper.cc ('k') | chrome/renderer/web_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698