OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ |
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ | 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 12 matching lines...) Expand all Loading... | |
23 : public NON_EXPORTED_BASE(payments::mojom::PaymentAppManager) { | 23 : public NON_EXPORTED_BASE(payments::mojom::PaymentAppManager) { |
24 public: | 24 public: |
25 PaymentAppManager( | 25 PaymentAppManager( |
26 PaymentAppContext* payment_app_context, | 26 PaymentAppContext* payment_app_context, |
27 mojo::InterfaceRequest<payments::mojom::PaymentAppManager> request); | 27 mojo::InterfaceRequest<payments::mojom::PaymentAppManager> request); |
28 | 28 |
29 ~PaymentAppManager() override; | 29 ~PaymentAppManager() override; |
30 | 30 |
31 private: | 31 private: |
32 friend class PaymentAppManagerTest; | 32 friend class PaymentAppManagerTest; |
33 | |
33 // payments::mojom::PaymentAppManager methods: | 34 // payments::mojom::PaymentAppManager methods: |
34 void SetManifest(const std::string& scope, | 35 void SetManifest(const std::string& scope, |
35 payments::mojom::PaymentAppManifestPtr manifest, | 36 payments::mojom::PaymentAppManifestPtr manifest, |
36 const SetManifestCallback& callback) override; | 37 const SetManifestCallback& callback) override; |
37 void DidFindRegistrationToSetManifest( | 38 void DidFindRegistrationToSetManifest( |
38 payments::mojom::PaymentAppManifestPtr manifest, | 39 payments::mojom::PaymentAppManifestPtr manifest, |
39 const SetManifestCallback& callback, | 40 const SetManifestCallback& callback, |
40 ServiceWorkerStatusCode status, | 41 ServiceWorkerStatusCode status, |
41 scoped_refptr<ServiceWorkerRegistration> registration); | 42 scoped_refptr<ServiceWorkerRegistration> registration); |
42 void DidSetManifest(const SetManifestCallback& callback, | 43 void DidSetManifest(const SetManifestCallback& callback, |
43 ServiceWorkerStatusCode status); | 44 ServiceWorkerStatusCode status); |
44 | 45 |
46 void GetManifest(const std::string& scope, | |
47 const GetManifestCallback& callback) override; | |
please use gerrit instead
2016/11/21 22:02:13
Please put only SetManifest() and GetManifest() in
zino
2016/11/21 23:48:40
Done.
| |
48 void DidFindRegistrationToGetManifest( | |
49 const GetManifestCallback& callback, | |
50 ServiceWorkerStatusCode status, | |
51 scoped_refptr<ServiceWorkerRegistration> registration); | |
52 void DidGetManifest(const GetManifestCallback& callback, | |
53 const std::vector<std::string>& data, | |
54 ServiceWorkerStatusCode status); | |
55 | |
45 // Called when an error is detected on binding_. | 56 // Called when an error is detected on binding_. |
46 void OnConnectionError(); | 57 void OnConnectionError(); |
47 | 58 |
48 // payment_app_context_ owns this. | 59 // payment_app_context_ owns this. |
please use gerrit instead
2016/11/21 22:02:13
"this" is confusing here. I guess you wanted to sa
zino
2016/11/21 23:48:40
Done.
| |
49 PaymentAppContext* payment_app_context_; | 60 PaymentAppContext* payment_app_context_; |
50 | 61 |
51 mojo::Binding<payments::mojom::PaymentAppManager> binding_; | 62 mojo::Binding<payments::mojom::PaymentAppManager> binding_; |
52 | 63 |
53 base::WeakPtrFactory<PaymentAppManager> weak_ptr_factory_; | 64 base::WeakPtrFactory<PaymentAppManager> weak_ptr_factory_; |
54 | 65 |
55 DISALLOW_COPY_AND_ASSIGN(PaymentAppManager); | 66 DISALLOW_COPY_AND_ASSIGN(PaymentAppManager); |
56 }; | 67 }; |
57 | 68 |
58 } // namespace content | 69 } // namespace content |
59 | 70 |
60 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ | 71 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_MANAGER_H_ |
OLD | NEW |