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 CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Use these to iterate over all frame hosts known by this object. | 34 // Use these to iterate over all frame hosts known by this object. |
35 const_iterator begin() const { return frame_hosts_.begin(); } | 35 const_iterator begin() const { return frame_hosts_.begin(); } |
36 const_iterator end() const { return frame_hosts_.end(); } | 36 const_iterator end() const { return frame_hosts_.end(); } |
37 | 37 |
38 // True if navigation events for the given frame can be sent. | 38 // True if navigation events for the given frame can be sent. |
39 bool CanSendEvents(content::RenderFrameHost* frame_host) const; | 39 bool CanSendEvents(content::RenderFrameHost* frame_host) const; |
40 | 40 |
41 // Starts to track a document load in |frame_host| to |url|. | 41 // Starts to track a document load in |frame_host| to |url|. |
42 void StartTrackingDocumentLoad(content::RenderFrameHost* frame_host, | 42 void StartTrackingDocumentLoad(content::RenderFrameHost* frame_host, |
43 const GURL& url, | 43 const GURL& url, |
44 bool is_same_page, | 44 bool is_same_document, |
45 bool is_error_page); | 45 bool is_error_page); |
46 | 46 |
47 // Adds the |frame_host| to the set of RenderFrameHosts associated with the | 47 // Adds the |frame_host| to the set of RenderFrameHosts associated with the |
48 // WebContents this object is tracking. This method and FrameHostDeleted | 48 // WebContents this object is tracking. This method and FrameHostDeleted |
49 // are used to track the set of current RenderFrameHosts, which is used to | 49 // are used to track the set of current RenderFrameHosts, which is used to |
50 // implement the GetFrame and GetAllFrames extension APIs. | 50 // implement the GetFrame and GetAllFrames extension APIs. |
51 void FrameHostCreated(content::RenderFrameHost* frame_host); | 51 void FrameHostCreated(content::RenderFrameHost* frame_host); |
52 | 52 |
53 // Removes the |frame_host| from the set of RenderFrameHosts associated with | 53 // Removes the |frame_host| from the set of RenderFrameHosts associated with |
54 // the WebContents this object is tracking. | 54 // the WebContents this object is tracking. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // If true, also allow events from chrome-extension:// URLs. | 111 // If true, also allow events from chrome-extension:// URLs. |
112 static bool allow_extension_scheme_; | 112 static bool allow_extension_scheme_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(FrameNavigationState); | 114 DISALLOW_COPY_AND_ASSIGN(FrameNavigationState); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace extensions | 117 } // namespace extensions |
118 | 118 |
119 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H
_ | 119 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_FRAME_NAVIGATION_STATE_H
_ |
OLD | NEW |