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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 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 | Annotate | Revision Log
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/common/javascript_message_type.h" 16 #include "content/public/common/javascript_message_type.h"
17 #include "content/public/common/media_stream_request.h"
17 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
18 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
20 #include "webkit/glue/window_open_disposition.h" 21 #include "webkit/glue/window_open_disposition.h"
21 22
22 class GURL; 23 class GURL;
23 class SkBitmap; 24 class SkBitmap;
24 class WebContentsImpl; 25 class WebContentsImpl;
25 class WebKeyboardEvent; 26 class WebKeyboardEvent;
26 struct ViewHostMsg_CreateWindow_Params; 27 struct ViewHostMsg_CreateWindow_Params;
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 virtual void ShowCreatedWidget(int route_id, 384 virtual void ShowCreatedWidget(int route_id,
384 const gfx::Rect& initial_pos) {} 385 const gfx::Rect& initial_pos) {}
385 386
386 // Show the newly created full screen widget. Similar to above. 387 // Show the newly created full screen widget. Similar to above.
387 virtual void ShowCreatedFullscreenWidget(int route_id) {} 388 virtual void ShowCreatedFullscreenWidget(int route_id) {}
388 389
389 // A context menu should be shown, to be built using the context information 390 // A context menu should be shown, to be built using the context information
390 // provided in the supplied params. 391 // provided in the supplied params.
391 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} 392 virtual void ShowContextMenu(const content::ContextMenuParams& params) {}
392 393
394 // The render view host has requested access to media devices listed in
Evan Stade 2012/06/09 05:47:38 s/render view host/render view/
395 // |request|, and the client should grant or deny that permission by
396 // calling |callback|.
397 virtual void RequestMediaAccessPermission(
398 const content::MediaStreamRequest* request,
jam 2012/06/11 05:31:57 nit: here and below, no "content::" since this is
Evan Stade 2012/06/12 00:00:46 Done.
399 const content::MediaResponseCallback& callback) {}
400
393 protected: 401 protected:
394 virtual ~RenderViewHostDelegate() {} 402 virtual ~RenderViewHostDelegate() {}
395 }; 403 };
396 404
397 } // namespace content 405 } // namespace content
398 406
399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 407 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698