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 CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
12 #include "webkit/glue/web_intent_service_data.h" | 12 #include "webkit/glue/web_intent_service_data.h" |
13 | 13 |
14 class InfoBarTabHelper; | 14 class InfoBarTabHelper; |
15 class TabContents; | |
16 class WebIntentsRegistry; | 15 class WebIntentsRegistry; |
17 | 16 |
18 // The InfoBar used to request permission for a site to be registered as an | 17 // The InfoBar used to request permission for a site to be registered as an |
19 // Intent handler. | 18 // Intent handler. |
20 class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { | 19 class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
21 public: | 20 public: |
22 RegisterIntentHandlerInfoBarDelegate( | 21 RegisterIntentHandlerInfoBarDelegate( |
23 InfoBarTabHelper* infobar_helper, | 22 InfoBarTabHelper* infobar_helper, |
24 WebIntentsRegistry* registry, | 23 WebIntentsRegistry* registry, |
25 const webkit_glue::WebIntentServiceData& service); | 24 const webkit_glue::WebIntentServiceData& service); |
(...skipping 21 matching lines...) Expand all Loading... |
47 // The web intents registry to use. Weak pointer. | 46 // The web intents registry to use. Weak pointer. |
48 WebIntentsRegistry* registry_; | 47 WebIntentsRegistry* registry_; |
49 | 48 |
50 // The cached intent service data bundle passed up from the renderer. | 49 // The cached intent service data bundle passed up from the renderer. |
51 webkit_glue::WebIntentServiceData service_; | 50 webkit_glue::WebIntentServiceData service_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(RegisterIntentHandlerInfoBarDelegate); | 52 DISALLOW_COPY_AND_ASSIGN(RegisterIntentHandlerInfoBarDelegate); |
54 }; | 53 }; |
55 | 54 |
56 #endif // CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ | 55 #endif // CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_ |
OLD | NEW |