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

Side by Side Diff: content/browser/browser_plugin/test_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_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "content/public/browser/browser_plugin_guest_delegate.h" 8 #include "content/public/browser/browser_plugin_guest_delegate.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class TestBrowserPluginGuestDelegate : public BrowserPluginGuestDelegate { 12 class TestBrowserPluginGuestDelegate : public BrowserPluginGuestDelegate {
13 public: 13 public:
14 TestBrowserPluginGuestDelegate(); 14 TestBrowserPluginGuestDelegate();
15 virtual ~TestBrowserPluginGuestDelegate(); 15 virtual ~TestBrowserPluginGuestDelegate();
16 16
17 void ResetStates(); 17 void ResetStates();
18 18
19 bool load_aborted() const { return load_aborted_; } 19 bool load_aborted() const { return load_aborted_; }
20 const GURL& load_aborted_url() const { return load_aborted_url_; } 20 const GURL& load_aborted_url() const { return load_aborted_url_; }
21 21
22 private: 22 private:
23 // Overridden from BrowserPluginGuestDelegate: 23 // Overridden from BrowserPluginGuestDelegate:
24 virtual void AddMessageToConsole(int32 level, 24 virtual void AddMessageToConsole(int32 level,
25 const string16& message, 25 const base::string16& message,
26 int32 line_no, 26 int32 line_no,
27 const string16& source_id) OVERRIDE; 27 const base::string16& source_id) OVERRIDE;
28 virtual void Close() OVERRIDE; 28 virtual void Close() OVERRIDE;
29 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; 29 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE;
30 virtual bool HandleKeyboardEvent( 30 virtual bool HandleKeyboardEvent(
31 const NativeWebKeyboardEvent& event) OVERRIDE; 31 const NativeWebKeyboardEvent& event) OVERRIDE;
32 virtual void LoadAbort(bool is_top_level, 32 virtual void LoadAbort(bool is_top_level,
33 const GURL& url, 33 const GURL& url,
34 const std::string& error_type) OVERRIDE; 34 const std::string& error_type) OVERRIDE;
35 virtual void RendererResponsive() OVERRIDE; 35 virtual void RendererResponsive() OVERRIDE;
36 virtual void RendererUnresponsive() OVERRIDE; 36 virtual void RendererUnresponsive() OVERRIDE;
37 virtual bool RequestPermission( 37 virtual bool RequestPermission(
38 BrowserPluginPermissionType permission_type, 38 BrowserPluginPermissionType permission_type,
39 const base::DictionaryValue& request_info, 39 const base::DictionaryValue& request_info,
40 const PermissionResponseCallback& callback, 40 const PermissionResponseCallback& callback,
41 bool allowed_by_default) OVERRIDE; 41 bool allowed_by_default) OVERRIDE;
42 virtual void SizeChanged(const gfx::Size& old_size, 42 virtual void SizeChanged(const gfx::Size& old_size,
43 const gfx::Size& new_size) OVERRIDE; 43 const gfx::Size& new_size) OVERRIDE;
44 44
45 bool load_aborted_; 45 bool load_aborted_;
46 GURL load_aborted_url_; 46 GURL load_aborted_url_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestDelegate); 48 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuestDelegate);
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 52 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698