OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // Notification that the RenderViewHost's load state changed. | 406 // Notification that the RenderViewHost's load state changed. |
407 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, | 407 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, |
408 uint64 upload_position, uint64 upload_size) {} | 408 uint64 upload_position, uint64 upload_size) {} |
409 | 409 |
410 // Returns true if this view is used to host an external tab container. | 410 // Returns true if this view is used to host an external tab container. |
411 virtual bool IsExternalTabContainer() const; | 411 virtual bool IsExternalTabContainer() const; |
412 | 412 |
413 // Notification that a worker process has crashed. | 413 // Notification that a worker process has crashed. |
414 void WorkerCrashed() {} | 414 void WorkerCrashed() {} |
415 | 415 |
416 // Ask the user if they want to allow the view to show desktop notifications. | |
417 // Returns true if the delegate will take care of asking the user, otherwise | |
418 // the caller will do the default behavior. | |
419 bool RequestDesktopNotificationPermission(const GURL& source_origin, | |
420 int callback_context); | |
421 | |
422 protected: | 416 protected: |
423 virtual ~RenderViewHostDelegate() {} | 417 virtual ~RenderViewHostDelegate() {} |
424 }; | 418 }; |
425 | 419 |
426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |