summaryrefslogtreecommitdiffstats
path: root/components/sessions
Commit message (Collapse)AuthorAgeFilesLines
* Move session_id.{cc,h} from chrome/browser/sessions to components/sessionshashimoto@chromium.org2014-08-183-0/+40
| | | | | | | | | | | | | | | | Move SessionID out of chrome/ to make it usable from non-Chrome embedders like app_shell and athena. Move methods IdForTab() and IdForWindowContainingTab() from SessionID to SessionTabHelper to make SessionID chrome-free. Move SessionID to components/sessions. Fix gyp, BUILD.gn and DEPS. BUG=403726 TBR=sky@chromium.org for include fix under chrome/browser Review URL: https://codereview.chromium.org/480883002 Cr-Commit-Position: refs/heads/master@{#290242} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290242 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize referrer in context menus.nasko@chromium.org2014-08-051-25/+6
| | | | | | | | | | | This CL adds a method to content::Referrer that allows for sanitizing the referrer before making a network request and uses it to scrub the Referer header for requests originating in the context menu. It is based on work started by cbentzel@ in https://codereview.chromium.org/277903002/. BUG=357473 Review URL: https://codereview.chromium.org/438283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287579 0039d316-1c4b-4281-b951-d872f2087c98
* Add more components to the GN build.brettw@chromium.org2014-07-161-0/+43
| | | | | | | | | | | | | | | | | | google infobars invalidation navigation_intercaption network_time password_manager plugins search_provider_logos sessions R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/397953005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283521 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove some unnecessary DCHECKs in serialized_navigation_entry.cc.treib@chromium.org2014-04-291-4/+0
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/257823003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266765 0039d316-1c4b-4281-b951-d872f2087c98
* Add a navigation redirect-chain to Sync sessions proto for offline analysis.donnd@chromium.org2014-04-233-0/+75
| | | | | | | | | | Google design doc at https://docs.google.com/a/google.com/document/d/1bh7aqvCMYzkobVA2MDuqWbQgymhdhdoqaOfvcLOaAYk BUG=310373 Review URL: https://codereview.chromium.org/101573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265515 0039d316-1c4b-4281-b951-d872f2087c98
* Don't try to remove the referrer from an empty page statejochen@chromium.org2014-02-141-0/+3
| | | | | | | | | BUG=339790 R=marja@chromium.org Review URL: https://codereview.chromium.org/166303003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251418 0039d316-1c4b-4281-b951-d872f2087c98
* Add IsRestored() interface to NavigationEntry and use it to differentiatehaitaol@chromium.org2014-02-062-0/+9
| | | | | | | | | | normal and restored synced navigations. BUG=340464 Review URL: https://codereview.chromium.org/152233003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249526 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize the referrer when loading a serialized navigation entryjochen@chromium.org2014-01-153-0/+71
| | | | | | | | | | | | Pickled entries might contain inconsistent data and trigger the check in the network stack. BUG=334125 R=marja@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/137893006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244863 0039d316-1c4b-4281-b951-d872f2087c98
* Include the referrer policy in sync'd tab navigationsjochen@chromium.org2014-01-082-5/+6
| | | | | | | | | BUG=332169 R=zea@chromium.org Review URL: https://codereview.chromium.org/128193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243693 0039d316-1c4b-4281-b951-d872f2087c98
* Update some uses of char16 to use the base:: namespace.avi@chromium.org2013-12-251-1/+1
| | | | | | | | | | BUG=329295 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/113403006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242503 0039d316-1c4b-4281-b951-d872f2087c98
* Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to ↵avi@chromium.org2013-12-253-10/+10
| | | | | | | | | | | | use the base:: namespace. BUG=330556 TEST=no change TBR=ben@chromium.org Review URL: https://codereview.chromium.org/112433004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242493 0039d316-1c4b-4281-b951-d872f2087c98
* Use base namespace for string16 in components and cloud_print.brettw@chromium.org2013-12-063-10/+10
| | | | | | | | | R=scottbyer@chromium.org TBR=scottbyer Review URL: https://codereview.chromium.org/107383002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239255 0039d316-1c4b-4281-b951-d872f2087c98
* Rename WebKit namespace to blink (part 4)abarth@chromium.org2013-11-073-8/+8
| | | | | | | | | | | | This CL updates all references to the WebKit namespace in chrome and components. TBR=darin@chromium.org BUG=295096 Review URL: https://codereview.chromium.org/63273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233464 0039d316-1c4b-4281-b951-d872f2087c98
* Add HTTP status code to navigation data structurespvalenzuela@chromium.org2013-08-284-0/+25
| | | | | | | | | | This is a reboot of https://codereview.chromium.org/11054025/ BUG=153936,260276 Review URL: https://chromiumcodereview.appspot.com/22837005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219954 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DEPS rules that are redundant with the defaults in src/DEPS.tfarina@chromium.org2013-07-141-2/+0
| | | | | | | | | | | | Update googleurl references in DEPS files and update one prohibition that had gotten out of sync. BUG=229660 TBR=marja@chromium.org,jyasskin@chromium.org,blundell@chromium.org,zea@chromium.org Review URL: https://chromiumcodereview.appspot.com/18919006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211611 0039d316-1c4b-4281-b951-d872f2087c98
* components: Migrate from googleurl/ includes to url/ ones. Part 3.tfarina@chromium.org2013-07-053-3/+3
| | | | | | | | | BUG=229660 TBR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/18739002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210272 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in chrome_frame/, chromeos/, ↵avi@chromium.org2013-06-283-3/+3
| | | | | | | | | | | | cloud_print/, components/. BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18054007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209068 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in components/, part 2.avi@chromium.org2013-06-112-2/+2
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16450003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205402 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of utf_string_conversions.h in chrome_frame/, ↵avi@chromium.org2013-06-073-3/+3
| | | | | | | | | | | | chromeos/, cloud_print/, components/, courgette/, device/, extensions/. BUG=none TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16614002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204961 0039d316-1c4b-4281-b951-d872f2087c98
* Update references to Blink's Platform API headers (remaining)abarth@chromium.org2013-05-304-4/+4
| | | | | | | | | | | | | | | These headers have moved from Source/Platform/chromium/public to public/platform. This CL updates the remaining references to the old location to point to the new location. After this CL lands, I'll remove the forwarding headers that are letting these references still work. TBR=darin@chromium.org BUG=239545 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15648012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203106 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce content::PageState (again).darin@chromium.org2013-05-285-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a concrete class wrapping a string that contains the data of a serialized WebKit::WebHistoryItem class. Previously, we've just passed around these as strings, giving them names like "state", "content_state" or "history_state". It has been hard to identify all of the places in the code where these strings get passed around. A concrete class should make usage more apparent. Plus, instead of manipulating the strings using methods from webkit/glue/glue_serialize.h, we can just declare methods on the PageState class. This makes the code much cleaner. This first pass just implements PageState in terms of glue_serialize. It also adds content/public/renderer/history_item_serialization.h as the home for PageState to WebKit::WebHistoryItem conversion, which should ideally only be usable from the renderer process. (This bit is a step toward resolving bug 237243.) page_state.h declares operator==() to support DCHECK_EQ, which seems consistent with the idea of PageState being a replacement for std::string. I didn't want to litter tests with calls to PageState::ToEncodedData(). That would get cumbersome. Originally reviewed at: https://codereview.chromium.org/14985014 The only difference is that page_state.cc is now split into two pieces: page_state.cc and page_state_webkit.cc. The second holds the definition of all methods that depend on webkit/glue. That way code like Chrome Frame and the iOS port of Chromium can use PageState without pulling in a dependency on webkit/glue at link time. BUG=240426 R=brettw@chromium.org, grt@chromium.org, joth@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/16162003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202678 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 202188 "Introduce content::PageState."grt@chromium.org2013-05-265-35/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change bloated npchrome_frame.dll (see http://build.chromium.org/f/chromium/perf/xp-release/sizes/report.html?=undefined&history=3&rev=202214&graph=npchrome_frame.dll) because content_common.lib's common_param_traits.obj depends on content_common.lib's page_state.obj which, in turn, depends on webkit. This means that consumers of IPC messages in content_common suddenly require all of webkit. > Introduce content::PageState. > > This is a concrete class wrapping a string that contains the > data of a serialized WebKit::WebHistoryItem class. Previously, > we've just passed around these as strings, giving them names > like "state", "content_state" or "history_state". It has been > hard to identify all of the places in the code where these > strings get passed around. A concrete class should make usage > more apparent. Plus, instead of manipulating the strings using > methods from webkit/glue/glue_serialize.h, we can just declare > methods on the PageState class. This makes the code much cleaner. > > This first pass just implements PageState in terms of glue_serialize. > It also adds content/public/renderer/history_item_serialization.h > as the home for PageState to WebKit::WebHistoryItem conversion, > which should ideally only be usable from the renderer process. > (This bit is a step toward resolving bug 237243.) > > page_state.h declares operator==() to support DCHECK_EQ, which > seems consistent with the idea of PageState being a replacement > for std::string. I didn't want to litter tests with calls to > PageState::ToEncodedData(). That would get cumbersome. > > BUG=240426 > R=brettw@chromium.org, tsepez@chromium.org > > Review URL: https://codereview.chromium.org/14985014 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16068002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202321 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce content::PageState.darin@chromium.org2013-05-245-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a concrete class wrapping a string that contains the data of a serialized WebKit::WebHistoryItem class. Previously, we've just passed around these as strings, giving them names like "state", "content_state" or "history_state". It has been hard to identify all of the places in the code where these strings get passed around. A concrete class should make usage more apparent. Plus, instead of manipulating the strings using methods from webkit/glue/glue_serialize.h, we can just declare methods on the PageState class. This makes the code much cleaner. This first pass just implements PageState in terms of glue_serialize. It also adds content/public/renderer/history_item_serialization.h as the home for PageState to WebKit::WebHistoryItem conversion, which should ideally only be usable from the renderer process. (This bit is a step toward resolving bug 237243.) page_state.h declares operator==() to support DCHECK_EQ, which seems consistent with the idea of PageState being a replacement for std::string. I didn't want to litter tests with calls to PageState::ToEncodedData(). That would get cumbersome. BUG=240426 R=brettw@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/14985014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202188 0039d316-1c4b-4281-b951-d872f2087c98
* Record blocked navigations for managed users.bauerb@chromium.org2013-05-242-1/+44
| | | | | | | | | | Blocked navigations are stored in ManagedModeNavigationObserver and associated with Session Sync data. BUG=229384 Review URL: https://chromiumcodereview.appspot.com/15740020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202157 0039d316-1c4b-4281-b951-d872f2087c98
* Forward declare sync_pb::TabNavigation so that anyone usingsky@chromium.org2013-05-012-1/+6
| | | | | | | | | | | | | components/sessions doesn't need an explicit dependency on sync.gyp for includes. BUG=none TEST=none R=zea@chromium.org Review URL: https://codereview.chromium.org/14740006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197746 0039d316-1c4b-4281-b951-d872f2087c98
* Adds OWNERS for components/sessions. I missed them in the move.sky@chromium.org2013-05-011-0/+2
| | | | | | | | | | | BUG=none TEST=none TBR=joi@chromium.org R=joi@chromium.org Review URL: https://codereview.chromium.org/14646024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197718 0039d316-1c4b-4281-b951-d872f2087c98
* Moves TabNavigation into components/sessions and renamessky@chromium.org2013-04-297-0/+1057
SerializedNaviationEntry. FreezeDriedNavigationEntry is probably an even better name, but I couldn't bring myself to such a long and wordy class name. Additionally did the following changes to make it easier to move: . exposed a bunch of getters on SerializedNavigationEntry so that you don't need to go through SerializedNavigationTestHelper. . Make WriteToPickle take the max size. This way the code doesn't have a dependency on SessionID. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/14497003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197086 0039d316-1c4b-4281-b951-d872f2087c98