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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 13375017: Move the ViewType enum to extensions\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h" 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api. h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 void DeveloperPrivateGetItemsInfoFunction:: 222 void DeveloperPrivateGetItemsInfoFunction::
223 GetInspectablePagesForExtensionProcess( 223 GetInspectablePagesForExtensionProcess(
224 const std::set<content::RenderViewHost*>& views, 224 const std::set<content::RenderViewHost*>& views,
225 ItemInspectViewList* result) { 225 ItemInspectViewList* result) {
226 for (std::set<content::RenderViewHost*>::const_iterator iter = views.begin(); 226 for (std::set<content::RenderViewHost*>::const_iterator iter = views.begin();
227 iter != views.end(); ++iter) { 227 iter != views.end(); ++iter) {
228 content::RenderViewHost* host = *iter; 228 content::RenderViewHost* host = *iter;
229 content::WebContents* web_contents = 229 content::WebContents* web_contents =
230 content::WebContents::FromRenderViewHost(host); 230 content::WebContents::FromRenderViewHost(host);
231 chrome::ViewType host_type = chrome::GetViewType(web_contents); 231 extensions::ViewType host_type = chrome::GetViewType(web_contents);
Yoyo Zhou 2013/04/01 17:36:51 ditto
232 if (chrome::VIEW_TYPE_EXTENSION_POPUP == host_type || 232 if (extensions::VIEW_TYPE_EXTENSION_POPUP == host_type ||
233 chrome::VIEW_TYPE_EXTENSION_DIALOG == host_type) 233 extensions::VIEW_TYPE_EXTENSION_DIALOG == host_type)
234 continue; 234 continue;
235 235
236 content::RenderProcessHost* process = host->GetProcess(); 236 content::RenderProcessHost* process = host->GetProcess();
237 result->push_back( 237 result->push_back(
238 constructInspectView(web_contents->GetURL(), 238 constructInspectView(web_contents->GetURL(),
239 process->GetID(), 239 process->GetID(),
240 host->GetRoutingID(), 240 host->GetRoutingID(),
241 process->GetBrowserContext()->IsOffTheRecord())); 241 process->GetBrowserContext()->IsOffTheRecord()));
242 } 242 }
243 } 243 }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 885
886 #undef SET_STRING 886 #undef SET_STRING
887 return true; 887 return true;
888 } 888 }
889 889
890 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {} 890 DeveloperPrivateGetStringsFunction::~DeveloperPrivateGetStringsFunction() {}
891 891
892 } // namespace api 892 } // namespace api
893 893
894 } // namespace extensions 894 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698