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

Side by Side Diff: extensions/browser/extension_web_contents_observer.h

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix extension page content scripts Created 5 years, 6 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698