text: // Copyright 2017 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  #ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_BUILDER_H_
  #define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_BUILDER_H_
  
  class GURL;
  
  @class ShareToData;
  @class Tab;
  
  namespace activity_services {
  
  // Returns a ShareToData object using data from |tab|. |shareURL| is the URL to
  // be shared with share extensions (excluding password managers). If |shareURL|
  // is empty, the visible URL associated with |tab| will be used instead. |tab|
  // must not be nil. Function may return nil.
  ShareToData* ShareToDataForTab(Tab* tab, const GURL& shareURL);
  
  }  // namespace activity_services
  
  #endif  // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_BUILDER_H_
  