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

Side by Side Diff: content/renderer/savable_resources.h

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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 | « content/renderer/render_frame_impl.cc ('k') | content/renderer/savable_resources.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_RENDERER_SAVABLE_RESOURCES_H_ 5 #ifndef CONTENT_RENDERER_SAVABLE_RESOURCES_H_
6 #define CONTENT_RENDERER_SAVABLE_RESOURCES_H_ 6 #define CONTENT_RENDERER_SAVABLE_RESOURCES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 private: 44 private:
45 DISALLOW_COPY_AND_ASSIGN(SavableResourcesResult); 45 DISALLOW_COPY_AND_ASSIGN(SavableResourcesResult);
46 }; 46 };
47 47
48 // Get all savable resource links from specified webframe. 48 // Get all savable resource links from specified webframe.
49 // Returns true if the saved resources links have been saved successfully. 49 // Returns true if the saved resources links have been saved successfully.
50 // Otherwise returns false (i.e. if the frame contains a non-savable content). 50 // Otherwise returns false (i.e. if the frame contains a non-savable content).
51 CONTENT_EXPORT bool GetSavableResourceLinksForFrame( 51 CONTENT_EXPORT bool GetSavableResourceLinksForFrame(
52 blink::WebFrame* frame, 52 blink::WebFrame* frame,
53 SavableResourcesResult* result, 53 SavableResourcesResult* result);
54 const char** savable_schemes);
55 54
56 // Returns the value in an elements resource url attribute. For IMG, SCRIPT or 55 // Returns the value in an elements resource url attribute. For IMG, SCRIPT or
57 // INPUT TYPE=image, returns the value in "src". For LINK TYPE=text/css, returns 56 // INPUT TYPE=image, returns the value in "src". For LINK TYPE=text/css, returns
58 // the value in "href". For BODY, TABLE, TR, TD, returns the value in 57 // the value in "href". For BODY, TABLE, TR, TD, returns the value in
59 // "background". For BLOCKQUOTE, Q, DEL, INS, returns the value in "cite" 58 // "background". For BLOCKQUOTE, Q, DEL, INS, returns the value in "cite"
60 // attribute. Otherwise returns a null WebString. 59 // attribute. Otherwise returns a null WebString.
61 CONTENT_EXPORT blink::WebString GetSubResourceLinkFromElement( 60 CONTENT_EXPORT blink::WebString GetSubResourceLinkFromElement(
62 const blink::WebElement& element); 61 const blink::WebElement& element);
63 62
64 } // namespace content 63 } // namespace content
65 64
66 #endif // CONTENT_RENDERER_SAVABLE_RESOURCES_H_ 65 #endif // CONTENT_RENDERER_SAVABLE_RESOURCES_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/savable_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698