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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const; | 176 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const; |
177 | 177 |
178 // Creates a BrowserPluginEmbedder object for this WebContents if one doesn't | 178 // Creates a BrowserPluginEmbedder object for this WebContents if one doesn't |
179 // already exist. | 179 // already exist. |
180 void CreateBrowserPluginEmbedderIfNecessary(); | 180 void CreateBrowserPluginEmbedderIfNecessary(); |
181 | 181 |
182 // Cancels modal dialogs in this WebContents, as well as in any browser | 182 // Cancels modal dialogs in this WebContents, as well as in any browser |
183 // plugins it is hosting. | 183 // plugins it is hosting. |
184 void CancelActiveAndPendingDialogs(); | 184 void CancelActiveAndPendingDialogs(); |
185 | 185 |
186 // Invoked when visible SSL state (as defined by SSLStatus) changes. | |
187 void DidChangeVisibleSSLState(); | |
188 | |
189 // Informs the render view host and the BrowserPluginEmbedder, if present, of | 186 // Informs the render view host and the BrowserPluginEmbedder, if present, of |
190 // a Drag Source End. | 187 // a Drag Source End. |
191 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 188 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
192 int screen_y, blink::WebDragOperation operation); | 189 int screen_y, blink::WebDragOperation operation); |
193 | 190 |
194 // Notification that the RenderViewHost's load state changed. | 191 // Notification that the RenderViewHost's load state changed. |
195 void LoadStateChanged(const GURL& url, | 192 void LoadStateChanged(const GURL& url, |
196 const net::LoadStateWithParam& load_state, | 193 const net::LoadStateWithParam& load_state, |
197 uint64_t upload_position, | 194 uint64_t upload_position, |
198 uint64_t upload_size); | 195 uint64_t upload_size); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 base::TimeTicks GetLastActiveTime() const override; | 327 base::TimeTicks GetLastActiveTime() const override; |
331 void SetLastActiveTime(base::TimeTicks last_active_time) override; | 328 void SetLastActiveTime(base::TimeTicks last_active_time) override; |
332 base::TimeTicks GetLastHiddenTime() const override; | 329 base::TimeTicks GetLastHiddenTime() const override; |
333 void WasShown() override; | 330 void WasShown() override; |
334 void WasHidden() override; | 331 void WasHidden() override; |
335 bool NeedToFireBeforeUnload() override; | 332 bool NeedToFireBeforeUnload() override; |
336 void DispatchBeforeUnload() override; | 333 void DispatchBeforeUnload() override; |
337 void AttachToOuterWebContentsFrame( | 334 void AttachToOuterWebContentsFrame( |
338 WebContents* outer_web_contents, | 335 WebContents* outer_web_contents, |
339 RenderFrameHost* outer_contents_frame) override; | 336 RenderFrameHost* outer_contents_frame) override; |
| 337 void DidChangeVisibleSecurityState() override; |
340 void Stop() override; | 338 void Stop() override; |
341 WebContents* Clone() override; | 339 WebContents* Clone() override; |
342 void ReloadFocusedFrame(bool bypass_cache) override; | 340 void ReloadFocusedFrame(bool bypass_cache) override; |
343 void Undo() override; | 341 void Undo() override; |
344 void Redo() override; | 342 void Redo() override; |
345 void Cut() override; | 343 void Cut() override; |
346 void Copy() override; | 344 void Copy() override; |
347 void CopyToFindPboard() override; | 345 void CopyToFindPboard() override; |
348 void Paste() override; | 346 void Paste() override; |
349 void PasteAndMatchStyle() override; | 347 void PasteAndMatchStyle() override; |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 // Adds/removes a callback called on creation of each new WebContents. | 1462 // Adds/removes a callback called on creation of each new WebContents. |
1465 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1463 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1466 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1464 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1467 | 1465 |
1468 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1466 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1469 }; | 1467 }; |
1470 | 1468 |
1471 } // namespace content | 1469 } // namespace content |
1472 | 1470 |
1473 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1471 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |