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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/browser_plugin_permission_type.h" 13 #include "content/public/common/browser_plugin_permission_type.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 struct NativeWebKeyboardEvent; 19 struct NativeWebKeyboardEvent;
20 20
21 // Objects implement this interface to get notified about changes in the guest 21 // Objects implement this interface to get notified about changes in the guest
22 // WebContents and to provide necessary functionality. 22 // WebContents and to provide necessary functionality.
23 class CONTENT_EXPORT BrowserPluginGuestDelegate { 23 class CONTENT_EXPORT BrowserPluginGuestDelegate {
24 public: 24 public:
25 virtual ~BrowserPluginGuestDelegate() {} 25 virtual ~BrowserPluginGuestDelegate() {}
26 26
27 // Add a message to the console. 27 // Add a message to the console.
28 virtual void AddMessageToConsole(int32 level, 28 virtual void AddMessageToConsole(int32 level,
29 const string16& message, 29 const base::string16& message,
30 int32 line_no, 30 int32 line_no,
31 const string16& source_id) {} 31 const base::string16& source_id) {}
32 32
33 // Request the delegate to close this guest, and do whatever cleanup it needs 33 // Request the delegate to close this guest, and do whatever cleanup it needs
34 // to do. 34 // to do.
35 virtual void Close() {} 35 virtual void Close() {}
36 36
37 // Informs the delegate that the guest render process is gone. |status| 37 // Informs the delegate that the guest render process is gone. |status|
38 // indicates whether the guest was killed, crashed, or was terminated 38 // indicates whether the guest was killed, crashed, or was terminated
39 // gracefully. 39 // gracefully.
40 virtual void GuestProcessGone(base::TerminationStatus status) {} 40 virtual void GuestProcessGone(base::TerminationStatus status) {}
41 41
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual GURL ResolveURL(const std::string& src); 83 virtual GURL ResolveURL(const std::string& src);
84 84
85 // Notifies that the content size of the guest has changed in autosize mode. 85 // Notifies that the content size of the guest has changed in autosize mode.
86 virtual void SizeChanged(const gfx::Size& old_size, 86 virtual void SizeChanged(const gfx::Size& old_size,
87 const gfx::Size& new_size) {} 87 const gfx::Size& new_size) {}
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 92 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/browser/child_process_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698