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

Side by Side Diff: chrome/common/extensions/extension.h

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 bool is_app() const { return is_app_; } 357 bool is_app() const { return is_app_; }
358 ExtensionExtent& web_extent() { return web_extent_; } 358 ExtensionExtent& web_extent() { return web_extent_; }
359 const std::string& launch_local_path() const { return launch_local_path_; } 359 const std::string& launch_local_path() const { return launch_local_path_; }
360 const std::string& launch_web_url() const { return launch_web_url_; } 360 const std::string& launch_web_url() const { return launch_web_url_; }
361 void set_launch_web_url(const std::string& launch_web_url) { 361 void set_launch_web_url(const std::string& launch_web_url) {
362 launch_web_url_ = launch_web_url; 362 launch_web_url_ = launch_web_url;
363 } 363 }
364 LaunchContainer launch_container() const { return launch_container_; } 364 LaunchContainer launch_container() const { return launch_container_; }
365 int launch_width() const { return launch_width_; } 365 int launch_width() const { return launch_width_; }
366 int launch_height() const { return launch_height_; } 366 int launch_height() const { return launch_height_; }
367 bool incognito_split_mode() const { return incognito_split_mode_; }
367 368
368 // Gets the fully resolved absolute launch URL. 369 // Gets the fully resolved absolute launch URL.
369 GURL GetFullLaunchURL() const; 370 GURL GetFullLaunchURL() const;
370 371
371 // Runtime data: 372 // Runtime data:
372 // Put dynamic data about the state of a running extension below. 373 // Put dynamic data about the state of a running extension below.
373 374
374 // Whether the background page, if any, is ready. We don't load other 375 // Whether the background page, if any, is ready. We don't load other
375 // components until then. If there is no background page, we consider it to 376 // components until then. If there is no background page, we consider it to
376 // be ready. 377 // be ready.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 // containers like panels and windows. 574 // containers like panels and windows.
574 int launch_width_; 575 int launch_width_;
575 int launch_height_; 576 int launch_height_;
576 577
577 // Cached images for this extension. 578 // Cached images for this extension.
578 ImageCache image_cache_; 579 ImageCache image_cache_;
579 580
580 // The omnibox keyword for this extension, or empty if there is none. 581 // The omnibox keyword for this extension, or empty if there is none.
581 std::string omnibox_keyword_; 582 std::string omnibox_keyword_;
582 583
584 // If true, a separate process will be used for the extension in incognito
585 // mode.
586 bool incognito_split_mode_;
587
583 // Runtime data: 588 // Runtime data:
584 589
585 // True if the background page is ready. 590 // True if the background page is ready.
586 bool background_page_ready_; 591 bool background_page_ready_;
587 592
588 // True while the extension is being upgraded. 593 // True while the extension is being upgraded.
589 bool being_upgraded_; 594 bool being_upgraded_;
590 595
591 FRIEND_TEST_ALL_PREFIXES(ExtensionTest, LoadPageActionHelper); 596 FRIEND_TEST_ALL_PREFIXES(ExtensionTest, LoadPageActionHelper);
592 FRIEND_TEST_ALL_PREFIXES(TabStripModelTest, Apps); 597 FRIEND_TEST_ALL_PREFIXES(TabStripModelTest, Apps);
(...skipping 14 matching lines...) Expand all
607 scoped_ptr<DictionaryValue> extension_manifest; 612 scoped_ptr<DictionaryValue> extension_manifest;
608 std::string extension_id; 613 std::string extension_id;
609 FilePath extension_path; 614 FilePath extension_path;
610 Extension::Location extension_location; 615 Extension::Location extension_location;
611 616
612 private: 617 private:
613 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 618 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
614 }; 619 };
615 620
616 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 621 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/manifest.html ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698