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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 | 1154 |
1155 // Finds the new WebContentsImpl by |main_frame_widget_route_id|, initializes | 1155 // Finds the new WebContentsImpl by |main_frame_widget_route_id|, initializes |
1156 // it for renderer-initiated creation, and returns it. Note that this can only | 1156 // it for renderer-initiated creation, and returns it. Note that this can only |
1157 // be called once as this call also removes it from the internal map. | 1157 // be called once as this call also removes it from the internal map. |
1158 WebContentsImpl* GetCreatedWindow(int process_id, | 1158 WebContentsImpl* GetCreatedWindow(int process_id, |
1159 int main_frame_widget_route_id); | 1159 int main_frame_widget_route_id); |
1160 | 1160 |
1161 // Sends a Page message IPC. | 1161 // Sends a Page message IPC. |
1162 void SendPageMessage(IPC::Message* msg); | 1162 void SendPageMessage(IPC::Message* msg); |
1163 | 1163 |
| 1164 void SetOpenerForNewContents(FrameTreeNode* opener, bool opener_suppressed); |
| 1165 |
1164 // Tracking loading progress ------------------------------------------------- | 1166 // Tracking loading progress ------------------------------------------------- |
1165 | 1167 |
1166 // Resets the tracking state of the current load progress. | 1168 // Resets the tracking state of the current load progress. |
1167 void ResetLoadProgressState(); | 1169 void ResetLoadProgressState(); |
1168 | 1170 |
1169 // Notifies the delegate that the load progress was updated. | 1171 // Notifies the delegate that the load progress was updated. |
1170 void SendChangeLoadProgress(); | 1172 void SendChangeLoadProgress(); |
1171 | 1173 |
1172 // Notifies the delegate of a change in loading state. | 1174 // Notifies the delegate of a change in loading state. |
1173 // |details| is used to provide details on the load that just finished | 1175 // |details| is used to provide details on the load that just finished |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 // Adds/removes a callback called on creation of each new WebContents. | 1590 // Adds/removes a callback called on creation of each new WebContents. |
1589 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1591 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1590 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1592 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1591 | 1593 |
1592 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1594 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
1593 }; | 1595 }; |
1594 | 1596 |
1595 } // namespace content | 1597 } // namespace content |
1596 | 1598 |
1597 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1599 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |