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