OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |