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

Side by Side Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.h

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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 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 EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_MANA GER_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_MANA GER_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_MANA GER_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_MANA GER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/scoped_observer.h" 13 #include "base/scoped_observer.h"
14 #include "components/keyed_service/core/keyed_service.h" 14 #include "components/keyed_service/core/keyed_service.h"
15 #include "extensions/browser/extension_registry_observer.h" 15 #include "extensions/browser/extension_registry_observer.h"
16 16
17 namespace content { 17 namespace content {
18 class BrowserContext; 18 class BrowserContext;
19 class WebContents;
20 } 19 }
21 20
22 namespace extensions { 21 namespace extensions {
23 class Extension; 22 class Extension;
24 class StreamContainer; 23 class StreamContainer;
25 24
26 // A container for streams that have not yet been claimed by a 25 // A container for streams that have not yet been claimed by a
27 // MimeHandlerViewGuest. If the embedding RenderFrameHost is closed or navigates 26 // MimeHandlerViewGuest. If the embedding RenderFrameHost is closed or navigates
28 // away from the resource being streamed, the stream is aborted. This is 27 // away from the resource being streamed, the stream is aborted. This is
29 // BrowserContext-keyed because mime handlers are extensions, which are 28 // BrowserContext-keyed because mime handlers are extensions, which are
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // EmbedderObserver until it is removed. 67 // EmbedderObserver until it is removed.
69 std::map<std::string, std::unique_ptr<EmbedderObserver>> embedder_observers_; 68 std::map<std::string, std::unique_ptr<EmbedderObserver>> embedder_observers_;
70 69
71 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 70 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
72 extension_registry_observer_; 71 extension_registry_observer_;
73 }; 72 };
74 73
75 } // namespace extensions 74 } // namespace extensions
76 75
77 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_M ANAGER_H_ 76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_STREAM_M ANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698