OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ | 5 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ |
6 #define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ | 6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 // A client interface to access and control extensions/apps | 16 // A client interface to access and control extensions/apps |
(...skipping 11 matching lines...) Expand all Loading... |
28 virtual void OnDialogClosed(content::WebContents* web_contents) = 0; | 28 virtual void OnDialogClosed(content::WebContents* web_contents) = 0; |
29 | 29 |
30 // Sets the name of the extensions associated with the | 30 // Sets the name of the extensions associated with the |
31 // |web_contents| in the |name_out| if there is one, returning true; | 31 // |web_contents| in the |name_out| if there is one, returning true; |
32 // returns false otherwise. | 32 // returns false otherwise. |
33 virtual bool GetExtensionName(content::WebContents* web_contents, | 33 virtual bool GetExtensionName(content::WebContents* web_contents, |
34 const GURL& origin_url, | 34 const GURL& origin_url, |
35 std::string* name_out) = 0; | 35 std::string* name_out) = 0; |
36 }; | 36 }; |
37 | 37 |
38 #endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ | 38 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_EXTENSIONS_CLIENT_H_ |
OLD | NEW |