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

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 bool IsSyncAccessible(); 374 bool IsSyncAccessible();
375 375
376 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not 376 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not
377 // already been sent. It is necessary because most Profiles are destroyed by 377 // already been sent. It is necessary because most Profiles are destroyed by
378 // ProfileDestroyer, but in tests, some are not. 378 // ProfileDestroyer, but in tests, some are not.
379 void MaybeSendDestroyedNotification(); 379 void MaybeSendDestroyedNotification();
380 380
381 // Creates an OffTheRecordProfile which points to this Profile. 381 // Creates an OffTheRecordProfile which points to this Profile.
382 Profile* CreateOffTheRecordProfile(); 382 Profile* CreateOffTheRecordProfile();
383 383
384 // Returns a string representation of the storage partition config for the
385 // given site.
386 std::string GetStoragePartitionIdForSite(const GURL& site);
Charlie Reis 2013/07/31 17:16:16 I think Albert will need to review the storage par
jochen (gone - plz use gerrit) 2013/07/31 18:30:52 Note that this particular change is just moving th
387
384 private: 388 private:
385 bool restored_last_session_; 389 bool restored_last_session_;
386 390
387 // Used to prevent the notification that this Profile is destroyed from 391 // Used to prevent the notification that this Profile is destroyed from
388 // being sent twice. 392 // being sent twice.
389 bool sent_destroyed_notification_; 393 bool sent_destroyed_notification_;
390 394
391 // Accessibility events will only be propagated when the pause 395 // Accessibility events will only be propagated when the pause
392 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 396 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
393 // increment and decrement the level, respectively, rather than set it to 397 // increment and decrement the level, respectively, rather than set it to
(...skipping 10 matching lines...) Expand all
404 struct hash<Profile*> { 408 struct hash<Profile*> {
405 std::size_t operator()(Profile* const& p) const { 409 std::size_t operator()(Profile* const& p) const {
406 return reinterpret_cast<std::size_t>(p); 410 return reinterpret_cast<std::size_t>(p);
407 } 411 }
408 }; 412 };
409 413
410 } // namespace BASE_HASH_NAMESPACE 414 } // namespace BASE_HASH_NAMESPACE
411 #endif 415 #endif
412 416
413 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 417 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698