| 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 AppBannerController_h | 5 #ifndef AppBannerController_h |
| 6 #define AppBannerController_h | 6 #define AppBannerController_h |
| 7 | 7 |
| 8 #include "modules/ModulesExport.h" | 8 #include "modules/ModulesExport.h" |
| 9 #include "platform/heap/Persistent.h" | 9 #include "platform/heap/Persistent.h" |
| 10 #include "platform/wtf/Allocator.h" |
| 11 #include "platform/wtf/Vector.h" |
| 10 #include "public/platform/modules/app_banner/app_banner.mojom-blink.h" | 12 #include "public/platform/modules/app_banner/app_banner.mojom-blink.h" |
| 11 #include "wtf/Allocator.h" | |
| 12 #include "wtf/Vector.h" | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class LocalFrame; | 16 class LocalFrame; |
| 17 | 17 |
| 18 class MODULES_EXPORT AppBannerController final | 18 class MODULES_EXPORT AppBannerController final |
| 19 : public mojom::blink::AppBannerController { | 19 : public mojom::blink::AppBannerController { |
| 20 public: | 20 public: |
| 21 explicit AppBannerController(LocalFrame&); | 21 explicit AppBannerController(LocalFrame&); |
| 22 | 22 |
| 23 static void BindMojoRequest(LocalFrame*, | 23 static void BindMojoRequest(LocalFrame*, |
| 24 mojom::blink::AppBannerControllerRequest); | 24 mojom::blink::AppBannerControllerRequest); |
| 25 | 25 |
| 26 void BannerPromptRequest(mojom::blink::AppBannerServicePtr, | 26 void BannerPromptRequest(mojom::blink::AppBannerServicePtr, |
| 27 mojom::blink::AppBannerEventRequest, | 27 mojom::blink::AppBannerEventRequest, |
| 28 const Vector<String>& platforms, | 28 const Vector<String>& platforms, |
| 29 const BannerPromptRequestCallback&) override; | 29 const BannerPromptRequestCallback&) override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 WeakPersistent<LocalFrame> frame_; | 32 WeakPersistent<LocalFrame> frame_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace blink | 35 } // namespace blink |
| 36 | 36 |
| 37 #endif // AppBannerController_h | 37 #endif // AppBannerController_h |
| OLD | NEW |