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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_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 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // RenderViewHostDelegate | 60 // RenderViewHostDelegate |
61 // | 61 // |
62 // An interface implemented by an object interested in knowing about the state | 62 // An interface implemented by an object interested in knowing about the state |
63 // of the RenderViewHost. | 63 // of the RenderViewHost. |
64 // | 64 // |
65 // This interface currently encompasses every type of message that was | 65 // This interface currently encompasses every type of message that was |
66 // previously being sent by WebContents itself. Some of these notifications | 66 // previously being sent by WebContents itself. Some of these notifications |
67 // may not be relevant to all users of RenderViewHost and we should consider | 67 // may not be relevant to all users of RenderViewHost and we should consider |
68 // exposing a more generic Send function on RenderViewHost and a response | 68 // exposing a more generic Send function on RenderViewHost and a response |
69 // listener here to serve that need. | 69 // listener here to serve that need. |
70 // | |
71 // TODO(joi): See if we can hide most or all of this from chrome/. | |
72 class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener { | 70 class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener { |
73 public: | 71 public: |
74 // RendererManagerment ------------------------------------------------------- | 72 // RendererManagerment ------------------------------------------------------- |
75 // Functions for managing switching of Renderers. For WebContents, this is | 73 // Functions for managing switching of Renderers. For WebContents, this is |
76 // implemented by the RenderViewHostManager. | 74 // implemented by the RenderViewHostManager. |
77 | 75 |
78 class CONTENT_EXPORT RendererManagement { | 76 class CONTENT_EXPORT RendererManagement { |
79 public: | 77 public: |
80 // Notification whether we should close the page, after an explicit call to | 78 // Notification whether we should close the page, after an explicit call to |
81 // AttemptToClosePage. This is called before a cross-site request or before | 79 // AttemptToClosePage. This is called before a cross-site request or before |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // A context menu should be shown, to be built using the context information | 380 // A context menu should be shown, to be built using the context information |
383 // provided in the supplied params. | 381 // provided in the supplied params. |
384 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} | 382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} |
385 | 383 |
386 protected: | 384 protected: |
387 virtual ~RenderViewHostDelegate() {} | 385 virtual ~RenderViewHostDelegate() {} |
388 }; | 386 }; |
389 | 387 |
390 } // namespace content | 388 } // namespace content |
391 | 389 |
392 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |