Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 void NotifyRenderViewType(content::RenderViewHost* render_view_host); | 62 void NotifyRenderViewType(content::RenderViewHost* render_view_host); |
| 63 | 63 |
| 64 // Returns the extension or app ID associated with a render view host. Returns | 64 // Returns the extension or app ID associated with a render view host. Returns |
| 65 // the empty string if the render view host is not for a valid extension. | 65 // the empty string if the render view host is not for a valid extension. |
| 66 static std::string GetExtensionId(content::RenderViewHost* render_view_host); | 66 static std::string GetExtensionId(content::RenderViewHost* render_view_host); |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 // The BrowserContext associated with the WebContents being observed. | 69 // The BrowserContext associated with the WebContents being observed. |
| 70 content::BrowserContext* browser_context_; | 70 content::BrowserContext* browser_context_; |
| 71 | 71 |
| 72 std::string extension_id_; | |
|
not at google - send to devlin
2015/06/03 20:15:44
Seem unnecessary given ProcessManager, plus you ha
Devlin
2015/06/03 20:28:47
Totally accidental. Removed.
| |
| 73 | |
| 72 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver); | 74 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver); |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 } // namespace extensions | 77 } // namespace extensions |
| 76 | 78 |
| 77 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 79 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |