OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PPAPI_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // from this function except as a last-minute sanity check if you convert the | 70 // from this function except as a last-minute sanity check if you convert the |
71 // IDs to a RenderView/ProcessHost on the UI thread. | 71 // IDs to a RenderView/ProcessHost on the UI thread. |
72 virtual bool GetRenderViewIDsForInstance(PP_Instance instance, | 72 virtual bool GetRenderViewIDsForInstance(PP_Instance instance, |
73 int* render_process_id, | 73 int* render_process_id, |
74 int* render_view_id) const = 0; | 74 int* render_view_id) const = 0; |
75 | 75 |
76 // Returns the name of the plugin. | 76 // Returns the name of the plugin. |
77 virtual const std::string& GetPluginName() = 0; | 77 virtual const std::string& GetPluginName() = 0; |
78 | 78 |
79 // Returns the user's profile data directory. | 79 // Returns the user's profile data directory. |
80 virtual const FilePath& GetProfileDataDirectory() = 0; | 80 virtual const base::FilePath& GetProfileDataDirectory() = 0; |
81 | 81 |
82 // Get the Document/Plugin URLs for the given PP_Instance. | 82 // Get the Document/Plugin URLs for the given PP_Instance. |
83 virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0; | 83 virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0; |
84 virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0; | 84 virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace content | 87 } // namespace content |
88 | 88 |
89 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ | 89 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PPAPI_HOST_H_ |
OLD | NEW |