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

Side by Side Diff: content/renderer/mock_content_renderer_client.h

Issue 8100013: Start off the Content API by moving content::ContentRendererClient to content\public\renderer.BU... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/renderer/content_renderer_client.h" 12 #include "content/public/renderer/content_renderer_client.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // Base class for unit tests that need to mock the ContentRendererClient. 16 // Base class for unit tests that need to mock the ContentRendererClient.
17 class MockContentRendererClient : public ContentRendererClient { 17 class MockContentRendererClient : public ContentRendererClient {
18 public: 18 public:
19 virtual ~MockContentRendererClient(); 19 virtual ~MockContentRendererClient();
20 virtual void RenderThreadStarted() OVERRIDE; 20 virtual void RenderThreadStarted() OVERRIDE;
21 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; 21 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
22 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; 22 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual bool HandleSetCookieRequest(RenderView* sender, 64 virtual bool HandleSetCookieRequest(RenderView* sender,
65 const GURL& url, 65 const GURL& url,
66 const GURL& first_party_for_cookies, 66 const GURL& first_party_for_cookies,
67 const std::string& value) OVERRIDE; 67 const std::string& value) OVERRIDE;
68 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE; 68 virtual bool IsProtocolSupportedForMedia(const GURL& url) OVERRIDE;
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace content
72 72
73 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 73 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/content_renderer_client.h ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698