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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 9150008: Introduce background.scripts feature for extension manifests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready to land Created 8 years, 11 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/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4455 matching lines...) Expand 10 before | Expand all | Expand 10 after
4466 it != all.end(); ++it) { 4466 it != all.end(); ++it) {
4467 const Extension* extension = *it; 4467 const Extension* extension = *it;
4468 std::string id = extension->id(); 4468 std::string id = extension->id();
4469 DictionaryValue* extension_value = new DictionaryValue; 4469 DictionaryValue* extension_value = new DictionaryValue;
4470 extension_value->SetString("id", id); 4470 extension_value->SetString("id", id);
4471 extension_value->SetString("version", extension->VersionString()); 4471 extension_value->SetString("version", extension->VersionString());
4472 extension_value->SetString("name", extension->name()); 4472 extension_value->SetString("name", extension->name());
4473 extension_value->SetString("public_key", extension->public_key()); 4473 extension_value->SetString("public_key", extension->public_key());
4474 extension_value->SetString("description", extension->description()); 4474 extension_value->SetString("description", extension->description());
4475 extension_value->SetString("background_url", 4475 extension_value->SetString("background_url",
4476 extension->background_url().spec()); 4476 extension->GetBackgroundURL().spec());
4477 extension_value->SetString("options_url", 4477 extension_value->SetString("options_url",
4478 extension->options_url().spec()); 4478 extension->options_url().spec());
4479 extension_value->Set("host_permissions", 4479 extension_value->Set("host_permissions",
4480 GetHostPermissions(extension, false)); 4480 GetHostPermissions(extension, false));
4481 extension_value->Set("effective_host_permissions", 4481 extension_value->Set("effective_host_permissions",
4482 GetHostPermissions(extension, true)); 4482 GetHostPermissions(extension, true));
4483 extension_value->Set("api_permissions", GetAPIPermissions(extension)); 4483 extension_value->Set("api_permissions", GetAPIPermissions(extension));
4484 Extension::Location location = extension->location(); 4484 Extension::Location location = extension->location();
4485 extension_value->SetBoolean("is_component", 4485 extension_value->SetBoolean("is_component",
4486 location == Extension::COMPONENT); 4486 location == Extension::COMPONENT);
(...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after
6796 6796
6797 Send(reply_message_); 6797 Send(reply_message_);
6798 redirect_query_ = 0; 6798 redirect_query_ = 0;
6799 reply_message_ = NULL; 6799 reply_message_ = NULL;
6800 } 6800 }
6801 6801
6802 void TestingAutomationProvider::OnRemoveProvider() { 6802 void TestingAutomationProvider::OnRemoveProvider() {
6803 if (g_browser_process) 6803 if (g_browser_process)
6804 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 6804 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
6805 } 6805 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698