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

Side by Side Diff: content/public/common/content_client.cc

Issue 747923004: webui: minimize webui flicker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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 (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 #include "content/public/common/content_client.h" 5 #include "content/public/common/content_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "content/public/common/user_agent.h" 9 #include "content/public/common/user_agent.h"
10 #include "ui/gfx/image/image.h" 10 #include "ui/gfx/image/image.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int resource_id, 86 int resource_id,
87 ui::ScaleFactor scale_factor) const { 87 ui::ScaleFactor scale_factor) const {
88 return base::StringPiece(); 88 return base::StringPiece();
89 } 89 }
90 90
91 base::RefCountedStaticMemory* ContentClient::GetDataResourceBytes( 91 base::RefCountedStaticMemory* ContentClient::GetDataResourceBytes(
92 int resource_id) const { 92 int resource_id) const {
93 return NULL; 93 return NULL;
94 } 94 }
95 95
96 WebUITextStyles ContentClient::GetWebUITextStyles() const {
97 return WebUITextStyles();
98 }
99
96 gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const { 100 gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const {
97 CR_DEFINE_STATIC_LOCAL(gfx::Image, kEmptyImage, ()); 101 CR_DEFINE_STATIC_LOCAL(gfx::Image, kEmptyImage, ());
98 return kEmptyImage; 102 return kEmptyImage;
99 } 103 }
100 104
101 std::string ContentClient::GetProcessTypeNameInEnglish(int type) { 105 std::string ContentClient::GetProcessTypeNameInEnglish(int type) {
102 NOTIMPLEMENTED(); 106 NOTIMPLEMENTED();
103 return std::string(); 107 return std::string();
104 } 108 }
105 109
106 #if defined(OS_MACOSX) && !defined(OS_IOS) 110 #if defined(OS_MACOSX) && !defined(OS_IOS)
107 bool ContentClient::GetSandboxProfileForSandboxType( 111 bool ContentClient::GetSandboxProfileForSandboxType(
108 int sandbox_type, 112 int sandbox_type,
109 int* sandbox_profile_resource_id) const { 113 int* sandbox_profile_resource_id) const {
110 return false; 114 return false;
111 } 115 }
112 #endif 116 #endif
113 117
114 } // namespace content 118 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698