Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/process_util.h" 15 #include "base/process_util.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/common/content_export.h"
18 #include "content/common/view_types.h" 19 #include "content/common/view_types.h"
19 #include "content/common/window_container_type.h" 20 #include "content/common/window_container_type.h"
20 #include "ipc/ipc_channel.h" 21 #include "ipc/ipc_channel.h"
21 #include "net/base/load_states.h" 22 #include "net/base/load_states.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
24 #include "webkit/glue/window_open_disposition.h" 25 #include "webkit/glue/window_open_disposition.h"
25 26
26 class BackgroundContents; 27 class BackgroundContents;
27 struct BookmarkNodeData; 28 struct BookmarkNodeData;
(...skipping 29 matching lines...) Expand all
57 // 58 //
58 // An interface implemented by an object interested in knowing about the state 59 // An interface implemented by an object interested in knowing about the state
59 // of the RenderViewHost. 60 // of the RenderViewHost.
60 // 61 //
61 // This interface currently encompasses every type of message that was 62 // This interface currently encompasses every type of message that was
62 // previously being sent by TabContents itself. Some of these notifications 63 // previously being sent by TabContents itself. Some of these notifications
63 // may not be relevant to all users of RenderViewHost and we should consider 64 // may not be relevant to all users of RenderViewHost and we should consider
64 // exposing a more generic Send function on RenderViewHost and a response 65 // exposing a more generic Send function on RenderViewHost and a response
65 // listener here to serve that need. 66 // listener here to serve that need.
66 // 67 //
67 class RenderViewHostDelegate : public IPC::Channel::Listener { 68 class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener {
68 public: 69 public:
69 // View ---------------------------------------------------------------------- 70 // View ----------------------------------------------------------------------
70 // Functions that can be routed directly to a view-specific class. 71 // Functions that can be routed directly to a view-specific class.
71 class View { 72 class CONTENT_EXPORT View {
72 public: 73 public:
73 // The page is trying to open a new page (e.g. a popup window). The window 74 // The page is trying to open a new page (e.g. a popup window). The window
74 // should be created associated with the given route, but it should not be 75 // should be created associated with the given route, but it should not be
75 // shown yet. That should happen in response to ShowCreatedWindow. 76 // shown yet. That should happen in response to ShowCreatedWindow.
76 // |params.window_container_type| describes the type of RenderViewHost 77 // |params.window_container_type| describes the type of RenderViewHost
77 // container that is requested -- in particular, the window.open call may 78 // container that is requested -- in particular, the window.open call may
78 // have specified 'background' and 'persistent' in the feature string. 79 // have specified 'background' and 'persistent' in the feature string.
79 // 80 //
80 // The passed |params.frame_name| parameter is the name parameter that was 81 // The passed |params.frame_name| parameter is the name parameter that was
81 // passed to window.open(), and will be empty if none was passed. 82 // passed to window.open(), and will be empty if none was passed.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // Notification message from HTML UI. 380 // Notification message from HTML UI.
380 virtual void WebUISend(RenderViewHost* render_view_host, 381 virtual void WebUISend(RenderViewHost* render_view_host,
381 const GURL& source_url, 382 const GURL& source_url,
382 const std::string& name, 383 const std::string& name,
383 const base::ListValue& args) {} 384 const base::ListValue& args) {}
384 protected: 385 protected:
385 virtual ~RenderViewHostDelegate() {} 386 virtual ~RenderViewHostDelegate() {}
386 }; 387 };
387 388
388 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698