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

Side by Side Diff: content/browser/mime_registry_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_MIME_REGISTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
6 #define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ 6 #define CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
7 7
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "third_party/WebKit/public/platform/mime_registry.mojom.h" 8 #include "third_party/WebKit/public/platform/mime_registry.mojom.h"
10 9
11 namespace content { 10 namespace content {
12 11
13 class MimeRegistryImpl : public blink::mojom::MimeRegistry { 12 class MimeRegistryImpl : public blink::mojom::MimeRegistry {
14 public: 13 public:
14 MimeRegistryImpl();
15 ~MimeRegistryImpl() override;
16
15 static void Create(blink::mojom::MimeRegistryRequest request); 17 static void Create(blink::mojom::MimeRegistryRequest request);
16 18
17 private: 19 private:
18 MimeRegistryImpl(blink::mojom::MimeRegistryRequest request);
19 ~MimeRegistryImpl() override;
20
21 void GetMimeTypeFromExtension( 20 void GetMimeTypeFromExtension(
22 const mojo::String& extension, 21 const mojo::String& extension,
23 const GetMimeTypeFromExtensionCallback& callback) override; 22 const GetMimeTypeFromExtensionCallback& callback) override;
24
25 mojo::StrongBinding<blink::mojom::MimeRegistry> binding_;
26 }; 23 };
27 24
28 } // namespace content 25 } // namespace content
29 26
30 #endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_ 27 #endif // CONTENT_BROWSER_MIME_REGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/media/capture/image_capture_impl.cc ('k') | content/browser/mime_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698