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

Side by Side Diff: extensions/browser/app_window/app_web_contents_helper.h

Issue 1200503002: [Extensions] Kill off ExtensionMsg_AddMessageToConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_
7 7
8 #include "content/public/common/console_message_level.h"
9 #include "content/public/common/media_stream_request.h" 8 #include "content/public/common/media_stream_request.h"
10 9
11 namespace blink { 10 namespace blink {
12 class WebGestureEvent; 11 class WebGestureEvent;
13 } 12 }
14 13
15 namespace content { 14 namespace content {
16 class BrowserContext; 15 class BrowserContext;
17 struct OpenURLParams; 16 struct OpenURLParams;
18 class WebContents; 17 class WebContents;
(...skipping 30 matching lines...) Expand all
49 const content::MediaResponseCallback& callback) const; 48 const content::MediaResponseCallback& callback) const;
50 49
51 // Checks permission to use the camera or microphone. See 50 // Checks permission to use the camera or microphone. See
52 // WebContentsDelegate. 51 // WebContentsDelegate.
53 bool CheckMediaAccessPermission(const GURL& security_origin, 52 bool CheckMediaAccessPermission(const GURL& security_origin,
54 content::MediaStreamType type) const; 53 content::MediaStreamType type) const;
55 54
56 private: 55 private:
57 const Extension* GetExtension() const; 56 const Extension* GetExtension() const;
58 57
59 // Helper method to add a message to the renderer's DevTools console.
60 void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level,
61 const std::string& message) const;
62
63 // The browser context with which this window is associated. 58 // The browser context with which this window is associated.
64 // AppWindowWebContentsDelegate does not own this object. 59 // AppWindowWebContentsDelegate does not own this object.
65 content::BrowserContext* browser_context_; 60 content::BrowserContext* browser_context_;
66 61
67 const std::string extension_id_; 62 const std::string extension_id_;
68 63
69 content::WebContents* web_contents_; 64 content::WebContents* web_contents_;
70 65
71 AppDelegate* app_delegate_; 66 AppDelegate* app_delegate_;
72 67
73 DISALLOW_COPY_AND_ASSIGN(AppWebContentsHelper); 68 DISALLOW_COPY_AND_ASSIGN(AppWebContentsHelper);
74 }; 69 };
75 70
76 } // namespace extensions 71 } // namespace extensions
77 72
78 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_ 73 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WEB_CONTENTS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698