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

Side by Side Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // BrowserContextKeyedAPI implementation. 60 // BrowserContextKeyedAPI implementation.
61 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance(); 61 static BrowserContextKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance();
62 62
63 private: 63 private:
64 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>; 64 friend class BrowserContextKeyedAPIFactory<StreamsPrivateAPI>;
65 65
66 // ExtensionRegistryObserver implementation. 66 // ExtensionRegistryObserver implementation.
67 void OnExtensionUnloaded(content::BrowserContext* browser_context, 67 void OnExtensionUnloaded(content::BrowserContext* browser_context,
68 const Extension* extension, 68 const Extension* extension,
69 UnloadedExtensionInfo::Reason reason) override; 69 UnloadedExtensionReason reason) override;
70 70
71 // BrowserContextKeyedAPI implementation. 71 // BrowserContextKeyedAPI implementation.
72 static const char* service_name() { 72 static const char* service_name() {
73 return "StreamsPrivateAPI"; 73 return "StreamsPrivateAPI";
74 } 74 }
75 static const bool kServiceIsNULLWhileTesting = true; 75 static const bool kServiceIsNULLWhileTesting = true;
76 static const bool kServiceRedirectedInIncognito = true; 76 static const bool kServiceRedirectedInIncognito = true;
77 77
78 content::BrowserContext* const browser_context_; 78 content::BrowserContext* const browser_context_;
79 using StreamMap = 79 using StreamMap =
(...skipping 22 matching lines...) Expand all
102 102
103 private: 103 private:
104 void OnClose(); 104 void OnClose();
105 105
106 std::string stream_url_; 106 std::string stream_url_;
107 }; 107 };
108 108
109 } // namespace extensions 109 } // namespace extensions
110 110
111 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ 111 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698