OLD | NEW |
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_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_COMMON_CONTENT_CLIENT_H_ |
6 #define CONTENT_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_COMMON_CONTENT_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "base/string16.h" |
11 | 12 |
12 class ContentBrowserClient; | 13 class ContentBrowserClient; |
13 class GURL; | 14 class GURL; |
14 struct GPUInfo; | 15 struct GPUInfo; |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 class ContentClient; | 19 class ContentClient; |
19 // Setter and getter for the client. The client should be set early, before any | 20 // Setter and getter for the client. The client should be set early, before any |
20 // content code is called. | 21 // content code is called. |
(...skipping 16 matching lines...) Expand all Loading... |
37 } | 38 } |
38 | 39 |
39 // Sets the URL that is logged if the child process crashes. Use GURL() to | 40 // Sets the URL that is logged if the child process crashes. Use GURL() to |
40 // clear the URL. | 41 // clear the URL. |
41 virtual void SetActiveURL(const GURL& url) {} | 42 virtual void SetActiveURL(const GURL& url) {} |
42 | 43 |
43 // Sets the data on the gpu to send along with crash reports. | 44 // Sets the data on the gpu to send along with crash reports. |
44 virtual void SetGpuInfo(const GPUInfo& gpu_info) {} | 45 virtual void SetGpuInfo(const GPUInfo& gpu_info) {} |
45 | 46 |
46 // Notifies that a plugin process has started. | 47 // Notifies that a plugin process has started. |
47 virtual void PluginProcessStarted() {} | 48 virtual void PluginProcessStarted(const string16& plugin_name) {} |
48 | 49 |
49 private: | 50 private: |
50 ContentBrowserClient* browser_client_; | 51 ContentBrowserClient* browser_client_; |
51 }; | 52 }; |
52 | 53 |
53 } // namespace content | 54 } // namespace content |
54 | 55 |
55 #endif // CONTENT_COMMON_CONTENT_CLIENT_H_ | 56 #endif // CONTENT_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |