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 | |
188 // Informs the render view host and the BrowserPluginEmbedder, if present, of | 185 // Informs the render view host and the BrowserPluginEmbedder, if present, of |
189 // a Drag Source End. | 186 // a Drag Source End. |
190 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 187 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
191 int screen_y, blink::WebDragOperation operation); | 188 int screen_y, blink::WebDragOperation operation); |
192 | 189 |
193 // Notification that the RenderViewHost's load state changed. | 190 // Notification that the RenderViewHost's load state changed. |
194 void LoadStateChanged(const GURL& url, | 191 void LoadStateChanged(const GURL& url, |
195 const net::LoadStateWithParam& load_state, | 192 const net::LoadStateWithParam& load_state, |
196 uint64_t upload_position, | 193 uint64_t upload_position, |
197 uint64_t upload_size); | 194 uint64_t upload_size); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 base::TimeTicks GetLastActiveTime() const override; | 326 base::TimeTicks GetLastActiveTime() const override; |
330 void SetLastActiveTime(base::TimeTicks last_active_time) override; | 327 void SetLastActiveTime(base::TimeTicks last_active_time) override; |
331 base::TimeTicks GetLastHiddenTime() const override; | 328 base::TimeTicks GetLastHiddenTime() const override; |
332 void WasShown() override; | 329 void WasShown() override; |
333 void WasHidden() override; | 330 void WasHidden() override; |
334 bool NeedToFireBeforeUnload() override; | 331 bool NeedToFireBeforeUnload() override; |
335 void DispatchBeforeUnload() override; | 332 void DispatchBeforeUnload() override; |
336 void AttachToOuterWebContentsFrame( | 333 void AttachToOuterWebContentsFrame( |
337 WebContents* outer_web_contents, | 334 WebContents* outer_web_contents, |
338 RenderFrameHost* outer_contents_frame) override; | 335 RenderFrameHost* outer_contents_frame) override; |
| 336 void DidChangeVisibleSecurityState() override; |
339 void Stop() override; | 337 void Stop() override; |
340 WebContents* Clone() override; | 338 WebContents* Clone() override; |
341 void ReloadFocusedFrame(bool bypass_cache) override; | 339 void ReloadFocusedFrame(bool bypass_cache) override; |
342 void Undo() override; | 340 void Undo() override; |
343 void Redo() override; | 341 void Redo() override; |
344 void Cut() override; | 342 void Cut() override; |
345 void Copy() override; | 343 void Copy() override; |
346 void CopyToFindPboard() override; | 344 void CopyToFindPboard() override; |
347 void Paste() override; | 345 void Paste() override; |
348 void PasteAndMatchStyle() override; | 346 void PasteAndMatchStyle() override; |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 // Adds/removes a callback called on creation of each new WebContents. | 1459 // Adds/removes a callback called on creation of each new WebContents. |
1462 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1460 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1463 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1461 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1464 | 1462 |
1465 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1463 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1466 }; | 1464 }; |
1467 | 1465 |
1468 } // namespace content | 1466 } // namespace content |
1469 | 1467 |
1470 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1468 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |