Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Side by Side Diff: content/browser/hyphenation/hyphenation_impl.h

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_HYPHENATION_HYPHENATION_IMPL_H_ 5 #ifndef CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
6 #define CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ 6 #define CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/interface_request.h" 9 #include "mojo/public/cpp/bindings/interface_request.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.moj om.h" 10 #include "third_party/WebKit/public/platform/modules/hyphenation/hyphenation.moj om.h"
12 11
13 namespace hyphenation { 12 namespace hyphenation {
14 13
15 class HyphenationImpl : public blink::mojom::Hyphenation { 14 class HyphenationImpl : public blink::mojom::Hyphenation {
16 public: 15 public:
16 HyphenationImpl();
17 ~HyphenationImpl() override;
18
17 static void Create(blink::mojom::HyphenationRequest); 19 static void Create(blink::mojom::HyphenationRequest);
18 20
19 // Hyphenation: 21 // Hyphenation:
20 void OpenDictionary(const mojo::String& locale, 22 void OpenDictionary(const mojo::String& locale,
21 const OpenDictionaryCallback& callback) override; 23 const OpenDictionaryCallback& callback) override;
22 24
23 private: 25 private:
24 explicit HyphenationImpl(blink::mojom::HyphenationRequest);
25 ~HyphenationImpl() override;
26
27 mojo::StrongBinding<blink::mojom::Hyphenation> binding_;
28
29 DISALLOW_COPY_AND_ASSIGN(HyphenationImpl); 26 DISALLOW_COPY_AND_ASSIGN(HyphenationImpl);
30 }; 27 };
31 28
32 } // namespace hyphenation 29 } // namespace hyphenation
33 30
34 #endif // CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_ 31 #endif // CONTENT_BROWSER_HYPHENATION_HYPHENATION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/device_sensors/device_sensor_host.cc ('k') | content/browser/hyphenation/hyphenation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698