OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ |
6 #define CHROME_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ | 6 #define CHROME_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
| 12 #include "base/macros.h" |
12 #include "content/public/renderer/render_frame_observer.h" | 13 #include "content/public/renderer/render_frame_observer.h" |
13 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 14 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
14 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" | 15 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptResult.h" |
15 | 16 |
16 namespace IPC { | 17 namespace IPC { |
17 class Message; | 18 class Message; |
18 } // namespace IPC | 19 } // namespace IPC |
19 | 20 |
20 class AppBannerClient : public content::RenderFrameObserver, | 21 class AppBannerClient : public content::RenderFrameObserver, |
21 public blink::WebAppBannerClient { | 22 public blink::WebAppBannerClient { |
(...skipping 19 matching lines...) Expand all Loading... |
41 void OnBannerAccepted(int request_id, const std::string& platform); | 42 void OnBannerAccepted(int request_id, const std::string& platform); |
42 void OnBannerDismissed(int request_id); | 43 void OnBannerDismissed(int request_id); |
43 | 44 |
44 IDMap<blink::WebAppBannerCallbacks, IDMapOwnPointer> | 45 IDMap<blink::WebAppBannerCallbacks, IDMapOwnPointer> |
45 banner_callbacks_; | 46 banner_callbacks_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(AppBannerClient); | 48 DISALLOW_COPY_AND_ASSIGN(AppBannerClient); |
48 }; | 49 }; |
49 | 50 |
50 #endif // CHROME_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ | 51 #endif // CHROME_RENDERER_BANNERS_APP_BANNER_CLIENT_H_ |
OLD | NEW |