| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 int error_code, | 288 int error_code, |
| 289 const GURL& url, | 289 const GURL& url, |
| 290 bool showing_repost_interstitial) = 0; | 290 bool showing_repost_interstitial) = 0; |
| 291 | 291 |
| 292 // Notification that a document has been loaded in a frame. | 292 // Notification that a document has been loaded in a frame. |
| 293 virtual void DocumentLoadedInFrame() = 0; | 293 virtual void DocumentLoadedInFrame() = 0; |
| 294 | 294 |
| 295 // Called when content in the current page was blocked due to the user's | 295 // Called when content in the current page was blocked due to the user's |
| 296 // content settings. | 296 // content settings. |
| 297 virtual void OnContentBlocked(ContentSettingsType type) = 0; | 297 virtual void OnContentBlocked(ContentSettingsType type) = 0; |
| 298 |
| 299 // Called when geolocation permission was set in a frame on the current |
| 300 // page. |
| 301 virtual void OnGeolocationPermissionSet(const GURL& requesting_frame, |
| 302 bool allowed) = 0; |
| 298 }; | 303 }; |
| 299 | 304 |
| 300 // Save ---------------------------------------------------------------------- | 305 // Save ---------------------------------------------------------------------- |
| 301 // Interface for saving web pages. | 306 // Interface for saving web pages. |
| 302 | 307 |
| 303 class Save { | 308 class Save { |
| 304 public: | 309 public: |
| 305 // Notification that we get when we receive all savable links of | 310 // Notification that we get when we receive all savable links of |
| 306 // sub-resources for the current page, their referrers and list of frames | 311 // sub-resources for the current page, their referrers and list of frames |
| 307 // (include main frame and sub frames). | 312 // (include main frame and sub frames). |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 virtual bool IsExternalTabContainer() const; | 631 virtual bool IsExternalTabContainer() const; |
| 627 | 632 |
| 628 // The RenderView has inserted one css file into page. | 633 // The RenderView has inserted one css file into page. |
| 629 virtual void DidInsertCSS() {} | 634 virtual void DidInsertCSS() {} |
| 630 | 635 |
| 631 // A different node in the page got focused. | 636 // A different node in the page got focused. |
| 632 virtual void FocusedNodeChanged() {} | 637 virtual void FocusedNodeChanged() {} |
| 633 }; | 638 }; |
| 634 | 639 |
| 635 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 640 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |