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

Side by Side Diff: content/test/test_content_client.h

Issue 7922023: Remove webkit_glue::BuildUserAgent(), remove windows spoofing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to r102225 Created 9 years, 3 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_TEST_TEST_CONTENT_CLIENT_H_ 5 #ifndef CONTENT_TEST_TEST_CONTENT_CLIENT_H_
6 #define CONTENT_TEST_TEST_CONTENT_CLIENT_H_ 6 #define CONTENT_TEST_TEST_CONTENT_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/content_client.h" 10 #include "content/common/content_client.h"
11 11
12 class TestContentClient : public content::ContentClient { 12 class TestContentClient : public content::ContentClient {
13 public: 13 public:
14 TestContentClient(); 14 TestContentClient();
15 virtual ~TestContentClient(); 15 virtual ~TestContentClient();
16 16
17 // content::ContentClient: 17 // content::ContentClient:
18 virtual void SetActiveURL(const GURL& url) OVERRIDE; 18 virtual void SetActiveURL(const GURL& url) OVERRIDE;
19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; 19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE;
20 virtual void AddPepperPlugins( 20 virtual void AddPepperPlugins(
21 std::vector<PepperPluginInfo>* plugins) OVERRIDE; 21 std::vector<PepperPluginInfo>* plugins) OVERRIDE;
22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) OVERRIDE; 22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) OVERRIDE;
23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
24 virtual std::string GetUserAgent(bool mimic_windows) const OVERRIDE; 24 virtual std::string GetUserAgent(bool* overriding) const OVERRIDE;
25 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; 25 virtual string16 GetLocalizedString(int message_id) const OVERRIDE;
26 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; 26 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE;
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 virtual bool SandboxPlugin(CommandLine* command_line, 28 virtual bool SandboxPlugin(CommandLine* command_line,
29 sandbox::TargetPolicy* policy) OVERRIDE; 29 sandbox::TargetPolicy* policy) OVERRIDE;
30 #endif 30 #endif
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(TestContentClient); 33 DISALLOW_COPY_AND_ASSIGN(TestContentClient);
34 }; 34 };
35 35
36 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_ 36 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698