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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <stdint.h>
9
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/basictypes.h"
11 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "build/build_config.h"
12 #include "content/browser/webui/web_ui_impl.h" 14 #include "content/browser/webui/web_ui_impl.h"
13 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
14 #include "content/common/frame_message_enums.h" 16 #include "content/common/frame_message_enums.h"
15 #include "content/public/browser/site_instance.h" 17 #include "content/public/browser/site_instance.h"
16 #include "content/public/common/javascript_message_type.h" 18 #include "content/public/common/javascript_message_type.h"
17 #include "content/public/common/media_stream_request.h" 19 #include "content/public/common/media_stream_request.h"
18 #include "net/http/http_response_headers.h" 20 #include "net/http/http_response_headers.h"
19 21
20 #if defined(OS_WIN) 22 #if defined(OS_WIN)
21 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
(...skipping 21 matching lines...) Expand all
43 public: 45 public:
44 // This is used to give the delegate a chance to filter IPC messages. 46 // This is used to give the delegate a chance to filter IPC messages.
45 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 47 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
46 const IPC::Message& message); 48 const IPC::Message& message);
47 49
48 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a 50 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a
49 // description of the semantics. 51 // description of the semantics.
50 virtual const GURL& GetMainFrameLastCommittedURL() const; 52 virtual const GURL& GetMainFrameLastCommittedURL() const;
51 53
52 // A message was added to to the console. 54 // A message was added to to the console.
53 virtual bool AddMessageToConsole(int32 level, 55 virtual bool AddMessageToConsole(int32_t level,
54 const base::string16& message, 56 const base::string16& message,
55 int32 line_no, 57 int32_t line_no,
56 const base::string16& source_id); 58 const base::string16& source_id);
57 59
58 // Informs the delegate whenever a RenderFrameHost is created. 60 // Informs the delegate whenever a RenderFrameHost is created.
59 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} 61 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
60 62
61 // Informs the delegate whenever a RenderFrameHost is deleted. 63 // Informs the delegate whenever a RenderFrameHost is deleted.
62 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} 64 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
63 65
64 // The RenderFrameHost has been swapped out. 66 // The RenderFrameHost has been swapped out.
65 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} 67 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
(...skipping 28 matching lines...) Expand all
94 // level frame. 96 // level frame.
95 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} 97 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {}
96 98
97 // The state for the page changed and should be updated in session history. 99 // The state for the page changed and should be updated in session history.
98 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, 100 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host,
99 const PageState& page_state) {} 101 const PageState& page_state) {}
100 102
101 // The page's title was changed and should be updated. Only called for the 103 // The page's title was changed and should be updated. Only called for the
102 // top-level frame. 104 // top-level frame.
103 virtual void UpdateTitle(RenderFrameHost* render_frame_host, 105 virtual void UpdateTitle(RenderFrameHost* render_frame_host,
104 int32 page_id, 106 int32_t page_id,
105 const base::string16& title, 107 const base::string16& title,
106 base::i18n::TextDirection title_direction) {} 108 base::i18n::TextDirection title_direction) {}
107 109
108 // The page's encoding was changed and should be updated. Only called for the 110 // The page's encoding was changed and should be updated. Only called for the
109 // top-level frame. 111 // top-level frame.
110 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, 112 virtual void UpdateEncoding(RenderFrameHost* render_frame_host,
111 const std::string& encoding) {} 113 const std::string& encoding) {}
112 114
113 // Return this object cast to a WebContents, if it is one. If the object is 115 // Return this object cast to a WebContents, if it is one. If the object is
114 // not a WebContents, returns NULL. 116 // not a WebContents, returns NULL.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 184 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
183 #endif 185 #endif
184 186
185 protected: 187 protected:
186 virtual ~RenderFrameHostDelegate() {} 188 virtual ~RenderFrameHostDelegate() {}
187 }; 189 };
188 190
189 } // namespace content 191 } // namespace content
190 192
191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/popup_menu_helper_mac.h ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698